Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 24113:b08af8f0ac01
localrepo: don't reintroduce pruned tag entries when tagging
If a commit and a followup tag commit are pruned, there are no references to it
in any non obsolete version of .hgtags. Without this change however, the next
time a tag is added to another branch, the obsolete references are appended in
.hgtags before the new entries for the current tag command.
The annotation to unfilter localrepo._tag() has been around since b3af182a1944.
The log message for it mentions computing the tag cache though, so I'm not sure
if this was misplaced? It looks like branchmap was aware of filtering then, and
now tracks a cache per view.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 01 Oct 2014 20:26:33 -0400 |
parents | ed5e8a9598ce |
children | fafd9a1284cf |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Feb 05 13:10:07 2015 -0800 +++ b/mercurial/localrepo.py Wed Oct 01 20:26:33 2014 -0400 @@ -504,7 +504,6 @@ """ return hook.hook(self.ui, self, name, throw, **args) - @unfilteredmethod def _tag(self, names, node, message, local, user, date, extra={}, editor=False): if isinstance(names, str):