[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    Re: Pointing tags to new revisions
From:       Mads Kiilerich <mads () kiilerich ! com>
Date:       2010-06-28 21:42:14
Message-ID: 4C291736.6090505 () kiilerich ! com
[Download RAW message or body]

  Michael Diamond wrote, On 06/28/2010 03:10 AM:
> I use tags to keep track of the most recent revision I have pushed to 
> a live server, which means I'm fairly reguarly calling 'hg tag On Live 
> Server -f'  I noticed that the .hgtags file seemed to keep a record 
> for every single time I'd made a change, which seemed odd to me 
> considering Mercurial ought to be remembering those changes in it's 
> revsions.  After reading http://mercurial.selenic.com/wiki/Tag I 
> understand why the tag file is always appended, rather than just 
> overwriting the revision the tag points to, however I still have two 
> questions:
>
> 1. If I feel so inclined, is it safe to manually delete the now unused 
> lines of .hgtags?  I'm not concerned about multiple collisions here, 
> so I assume it is ok, but I figured I'd ask.

Tag-wise I think it is safe, but you might get problems merging tags 
correctly later.

> 2. More importantly, I'm wondering why .hgtags often has more than one 
> reference for the same tag?  It seems that when you call 'hg tag -f' 
> it appends both the original tag pointer (again), and the new one. 
>  Why is that?
>

It is a clever trick to make sure tags merges correctly - see
http://mercurial.selenic.com/bts/issue1102
http://bytebucket.org/mirror/mercurial/changeset/938eddd76237

/Mads
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic