Patchwork [4,of,7] cleanup: drop the deprecated 'localrepo.tag' method

login
register
mail settings
Submitter Pierre-Yves David
Date May 2, 2017, 11:21 p.m.
Message ID <4faee12fe7e7667c919c.1493767303@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/20355/
State Accepted
Headers show

Comments

Pierre-Yves David - May 2, 2017, 11:21 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1493683384 -7200
#      Tue May 02 02:03:04 2017 +0200
# Node ID 4faee12fe7e7667c919c745480e5afdb07398642
# Parent  ea28399719169eaf06951c66c3a7cc2e3beea48b
# EXP-Topic dropcompat
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 4faee12fe7e7
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.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -639,11 +639,6 @@  class localrepository(object):
         """
         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)
-
     @filteredpropertycache
     def _tagscache(self):
         '''Returns a tagscache object that contains various tags related