diff 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
line wrap: on
line diff
--- 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)