comparison 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
comparison
equal deleted inserted replaced
24112:5d5ec4fb7ada 24113:b08af8f0ac01
502 won't call this unless they have registered a custom hook or are 502 won't call this unless they have registered a custom hook or are
503 replacing code that is expected to call a hook. 503 replacing code that is expected to call a hook.
504 """ 504 """
505 return hook.hook(self.ui, self, name, throw, **args) 505 return hook.hook(self.ui, self, name, throw, **args)
506 506
507 @unfilteredmethod
508 def _tag(self, names, node, message, local, user, date, extra={}, 507 def _tag(self, names, node, message, local, user, date, extra={},
509 editor=False): 508 editor=False):
510 if isinstance(names, str): 509 if isinstance(names, str):
511 names = (names,) 510 names = (names,)
512 511