##// END OF EJS Templates
shelve: add "writebundle()" to invoke "writebundle()" with relative path and vfs
FUJIWARA Katsunori -
r20983:2778616d default
parent child Browse files
Show More
@@ -77,6 +77,9 b' class shelvedfile(object):'
77 77 finally:
78 78 fp.close()
79 79
80 def writebundle(self, cg):
81 changegroup.writebundle(cg, self.fname, 'HG10UN', self.vfs)
82
80 83 class shelvedstate(object):
81 84 """Handle persistence during unshelving operations.
82 85
@@ -237,8 +240,7 b' def createcmd(ui, repo, pats, opts):'
237 240
238 241 bases = list(publicancestors(repo[node]))
239 242 cg = changegroup.changegroupsubset(repo, bases, [node], 'shelve')
240 changegroup.writebundle(cg, shelvedfile(repo, name, 'hg').filename(),
241 'HG10UN')
243 shelvedfile(repo, name, 'hg').writebundle(cg)
242 244 cmdutil.export(repo, [node],
243 245 fp=shelvedfile(repo, name, 'patch').opener('wb'),
244 246 opts=mdiff.diffopts(git=True))
General Comments 0
You need to be logged in to leave comments. Login now