##// END OF EJS Templates
shelve: add a bundlerepo method
Matt Mackall -
r22898:43816070 default
parent child Browse files
Show More
@@ -25,7 +25,7 b' from mercurial.i18n import _'
25 from mercurial.node import nullid, nullrev, bin, hex
25 from mercurial.node import nullid, nullrev, bin, hex
26 from mercurial import changegroup, cmdutil, scmutil, phases, commands
26 from mercurial import changegroup, cmdutil, scmutil, phases, commands
27 from mercurial import error, hg, mdiff, merge, patch, repair, util
27 from mercurial import error, hg, mdiff, merge, patch, repair, util
28 from mercurial import templatefilters, exchange
28 from mercurial import templatefilters, exchange, bundlerepo
29 from mercurial import lock as lockmod
29 from mercurial import lock as lockmod
30 from hgext import rebase
30 from hgext import rebase
31 import errno
31 import errno
@@ -78,6 +78,9 b' class shelvedfile(object):'
78 finally:
78 finally:
79 fp.close()
79 fp.close()
80
80
81 def bundlerepo(self):
82 return bundlerepo.bundlerepository(self.repo.baseui, self.repo.root,
83 self.vfs.join(self.fname))
81 def writebundle(self, cg):
84 def writebundle(self, cg):
82 changegroup.writebundle(cg, self.fname, 'HG10UN', self.vfs)
85 changegroup.writebundle(cg, self.fname, 'HG10UN', self.vfs)
83
86
General Comments 0
You need to be logged in to leave comments. Login now