On Fri, Dec 02, 2005 at 08:48:11PM +0100, Tommy Pettersson wrote: > While you unrecorded the tag in the copy repo it still remains > in the from-repo where to you pushed it. You then created a > new tag with the same name in the copy repo, and pushed that > tag too to the from-repo, so it now contains two tags with > the same name. If you pull from the from-repo you will get > the "first" tag back again, and then both repos will contain > both tags. > > Darcs is fine with two tags having the same name, but it > sometimes gives surprises and is usually undesirable. > > It "works" because darcs always picks the last patch with > a given name, and in the from-repo the "new" tag is last. > But if you pull the "old" tag back to the copy repo, the "old" > tag will be last there, and things will "work" differently, > which is confusing and also likely does the "wrong" thing. > > You should unrecord the old tag from _all_ repos so it's > lost forever. Just be sure to unrecord the right one.
Aha, not very nice. Good thing I have asked :) Also good thing that I have access to that "from-repository" to remove the tag there. But it could be some remote one to which I had access only thru darcs. Was the "untag" command ever considered? I guess it would be logical in this situation. If there's "tag" command, that gets propageted thru push, then there should be "untag" command, that also gets propageted. Or alternatively "retag" :). Even simpler, change functionality of tag, so that it automatically keeps only one tag with given name. Anyway there's no way to select which particular tag of given name one requests. In this case there'll be no need to "unrecord --tags", which is very confusing operation. For a long time I was afraid that this will remove all patches associated with given tag :) BTW, speaking about "unrecord --tags", how can I select which of 2 tags with the same name shall be unrecorded? I guess in this situation I have to "get" the tagged sources into separate repository, remove the tags in both repositories, then tag again in the separate repository, and then do "push". And tell other developers to "reget" their sources from the master repository. -- Minds, like parachutes, function best when open _______________________________________________ darcs-users mailing list darcs-users@darcs.net http://www.abridgegame.org/mailman/listinfo/darcs-users