[darcs-users] tag/untag how to

Tommy Pettersson ptp at lysator.liu.se
Fri Dec 2 19:48:11 UTC 2005


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.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-users mailing list