# HG changeset patch # User Matt Mackall # Date 1412966680 18000 # Node ID 43816070284e363b00e02471a5267415c6381d70 # Parent 8fe74328f700907f8a9a9ad98ee5fff92864cf45 shelve: add a bundlerepo method diff -r 8fe74328f700 -r 43816070284e 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)