Patchwork [4,of,4] localrepo: jettison parents() method per deprecation policy

login
register
mail settings
Submitter Augie Fackler
Date May 5, 2016, 2:56 a.m.
Message ID <db52b22e30d7babdf376.1462416967@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/14891/
State Accepted
Headers show

Comments

Augie Fackler - May 5, 2016, 2:56 a.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1462410123 14400
#      Wed May 04 21:02:03 2016 -0400
# Node ID db52b22e30d7babdf376b0c5f32ba679844125b2
# Parent  0106c03f1d8b0ab36283392c816fdeab0e90f53c
localrepo: jettison parents() method per deprecation policy

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -881,12 +881,6 @@  class localrepository(object):
             f = f[1:]
         return filelog.filelog(self.svfs, f)
 
-    def parents(self, changeid=None):
-        '''get list of changectxs for parents of changeid'''
-        msg = 'repo.parents() is deprecated, use repo[%r].parents()' % changeid
-        self.ui.deprecwarn(msg, '3.7')
-        return self[changeid].parents()
-
     def changectx(self, changeid):
         return self[changeid]