Mercurial > hg
changeset 22898:43816070284e
shelve: add a bundlerepo method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Oct 2014 13:44:40 -0500 |
parents | 8fe74328f700 |
children | 67cb1ab1ad1d |
files | hgext/shelve.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)