Patchwork D9696: shelve: remove a bundlerepo method

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2021, 8:37 p.m.
Message ID <differential-rev-PHID-DREV-yjis2cgvbm3m5k3b7adl-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48007/
State Superseded
Headers show

Comments

phabricator - Jan. 8, 2021, 8:37 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It was added in 43816070284e <https://phab.mercurial-scm.org/rHG43816070284e363b00e02471a5267415c6381d70> (shelve: add a bundlerepo method,
  2014-10-10), but I haven't been able to find a place it was used.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9696

AFFECTED FILES
  mercurial/shelve.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -38,7 +38,6 @@ 
 from . import (
     bookmarks,
     bundle2,
-    bundlerepo,
     changegroup,
     cmdutil,
     discovery,
@@ -149,12 +148,6 @@ 
         finally:
             fp.close()
 
-    def bundlerepo(self):
-        path = self.vfs.join(self.fname)
-        return bundlerepo.instance(
-            self.repo.baseui, b'bundle://%s+%s' % (self.repo.root, path), False
-        )
-
     def writebundle(self, bases, node):
         cgversion = changegroup.safeversion(self.repo)
         if cgversion == b'01':