shelve: add a bundlerepo method
authorMatt Mackall <mpm@selenic.com>
Fri, 10 Oct 2014 13:44:40 -0500
changeset 22898 43816070284e
parent 22897 8fe74328f700
child 22899 67cb1ab1ad1d
shelve: add a bundlerepo method
hgext/shelve.py
--- 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)