Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 32172:bda90664a462
cleanup: drop the deprecated 'localrepo.tag' method
This was deprecated in favor of 'mercurial.tags.tag'. We can now drop it for the
future 4.3.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 02 May 2017 02:03:04 +0200 |
parents | a7e210167c28 |
children | 4c565c1b4747 |
comparison
equal
deleted
inserted
replaced
32171:a7e210167c28 | 32172:bda90664a462 |
---|---|
636 This a convenience method to aid invoking hooks. Extensions likely | 636 This a convenience method to aid invoking hooks. Extensions likely |
637 won't call this unless they have registered a custom hook or are | 637 won't call this unless they have registered a custom hook or are |
638 replacing code that is expected to call a hook. | 638 replacing code that is expected to call a hook. |
639 """ | 639 """ |
640 return hook.hook(self.ui, self, name, throw, **args) | 640 return hook.hook(self.ui, self, name, throw, **args) |
641 | |
642 def tag(self, names, node, message, local, user, date, editor=False): | |
643 self.ui.deprecwarn("use 'tagsmod.tag' instead of 'repo.tag'", '4.2') | |
644 tagsmod.tag(self, names, node, message, local, user, date, | |
645 editor=editor) | |
646 | 641 |
647 @filteredpropertycache | 642 @filteredpropertycache |
648 def _tagscache(self): | 643 def _tagscache(self): |
649 '''Returns a tagscache object that contains various tags related | 644 '''Returns a tagscache object that contains various tags related |
650 caches.''' | 645 caches.''' |