Tags fix proposal
Sean Russell
ser at germane-software.com
Mon Jan 12 02:01:57 UTC 2009
Giorgos Keramidas wrote:
> On Sun, 11 Jan 2009 18:53:48 +0100, Mathieu Clabaut wrote:
>
>> On Sun, Jan 11, 2009 at 1:50 PM, Hans Meine wrote:
>>
>>> AFAICS, one of the main "glitches" people report about hg tags is
>>> that "clone -r foo" does not contain the tag foo. I wonder if this
>>>
...
> hg clone -r tagname source-repo destination-repo
>
> and then being unable to see the tag with:
>
> hg -R destination-repo tags | fgrep tagname
>
> or even seeing the *wrong* changeset (because the tag was overruled and
> there is an 'old' changeset with this tag in the destination repository.
>
This is, to me, the most worrisome aspect of Mercurial tagging: tagging
in Mercurial isn't idempotent.
hg clone -r tagname A B
hg clone -r tagname B C
The latter command, at best, fails; at worst, it gives you the wrong
version (as you mentioned).
--- SER
More information about the Mercurial
mailing list