hgext/shelve.py
changeset 22898 43816070284e
parent 22844 1533e642262d
child 22922 ebef5fcf7bd0
--- a/hgext/shelve.py	Sat Oct 11 14:05:09 2014 -0500
+++ b/hgext/shelve.py	Fri Oct 10 13:44:40 2014 -0500
@@ -25,7 +25,7 @@
 from mercurial.node import nullid, nullrev, bin, hex
 from mercurial import changegroup, cmdutil, scmutil, phases, commands
 from mercurial import error, hg, mdiff, merge, patch, repair, util
-from mercurial import templatefilters, exchange
+from mercurial import templatefilters, exchange, bundlerepo
 from mercurial import lock as lockmod
 from hgext import rebase
 import errno
@@ -78,6 +78,9 @@
         finally:
             fp.close()
 
+    def bundlerepo(self):
+        return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root,
+                                           self.vfs.join(self.fname))
     def writebundle(self, cg):
         changegroup.writebundle(cg, self.fname, 'HG10UN', self.vfs)