narrow: drop obsolete support for old Mercurial
authorMartin von Zweigbergk <martinvonz@google.com>
Sat, 08 Dec 2018 23:04:11 -0800
changeset 53632 0d50bfcd8f65f336aa21397cf58cc1d711b6ac2d
parent 53631 21e7c73af75f895b29a375c4d62b5f7a1e655cba
child 53633 109a267acc1efb3b279b6b244d548a0cd4fe5878
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
narrow: drop obsolete support for old Mercurial Not needed since narrow is shipped with core. Differential Revision: https://phab.mercurial-scm.org/D5397
hgext/narrow/narrowbundle2.py
--- a/hgext/narrow/narrowbundle2.py
+++ b/hgext/narrow/narrowbundle2.py
@@ -178,18 +178,16 @@ def _handlechangespec(op, inpart):
         chunksignal = changegroup.readexactly(inpart, 4)
 
     if clkills:
         # preserve bookmarks that repair.strip() would otherwise strip
         bmstore = repo._bookmarks
         class dummybmstore(dict):
             def applychanges(self, repo, tr, changes):
                 pass
-            def recordchange(self, tr): # legacy version
-                pass
         repo._bookmarks = dummybmstore()
         chgrpfile = repair.strip(op.ui, repo, list(clkills), backup=True,
                                  topic='widen')
         repo._bookmarks = bmstore
         if chgrpfile:
             op._widen_uninterr = repo.ui.uninterruptable()
             op._widen_uninterr.__enter__()
             # presence of _widen_bundle attribute activates widen handler later