changeset 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 d761ef24d6e1
children 6a2959acae1a
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)