tags: deprecated 'repo.tag'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 27 Mar 2017 16:00:47 +0200
changeset 31672 e6fd7930cf0b
parent 31671 d761ef24d6e1
child 31673 6a2959acae1a
tags: deprecated 'repo.tag' All user are gone. We can now celebrate the removal of some extra line from the 'localrepo' class.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Mar 27 18:08:05 2017 +0200
+++ b/mercurial/localrepo.py	Mon Mar 27 16:00:47 2017 +0200
@@ -650,6 +650,7 @@
         return hook.hook(self.ui, self, name, throw, **args)
 
     def tag(self, names, node, message, local, user, date, editor=False):
+        self.ui.deprecwarn("use 'tagsmod.tag' instead of 'repo.tag'", '4.2')
         tagsmod.tag(self, names, node, message, local, user, date,
                     editor=editor)