comparison mercurial/localrepo.py @ 31677:e6fd7930cf0b

tags: deprecated 'repo.tag' All user are gone. We can now celebrate the removal of some extra line from the 'localrepo' class.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 27 Mar 2017 16:00:47 +0200
parents a719f3315366
children 63d4deda1b31
comparison
equal deleted inserted replaced
31676:d761ef24d6e1 31677:e6fd7930cf0b
648 replacing code that is expected to call a hook. 648 replacing code that is expected to call a hook.
649 """ 649 """
650 return hook.hook(self.ui, self, name, throw, **args) 650 return hook.hook(self.ui, self, name, throw, **args)
651 651
652 def tag(self, names, node, message, local, user, date, editor=False): 652 def tag(self, names, node, message, local, user, date, editor=False):
653 self.ui.deprecwarn("use 'tagsmod.tag' instead of 'repo.tag'", '4.2')
653 tagsmod.tag(self, names, node, message, local, user, date, 654 tagsmod.tag(self, names, node, message, local, user, date,
654 editor=editor) 655 editor=editor)
655 656
656 @filteredpropertycache 657 @filteredpropertycache
657 def _tagscache(self): 658 def _tagscache(self):