Show More
@@ -77,6 +77,9 b' class shelvedfile(object):' | |||||
77 | finally: |
|
77 | finally: | |
78 | fp.close() |
|
78 | fp.close() | |
79 |
|
79 | |||
|
80 | def writebundle(self, cg): | |||
|
81 | changegroup.writebundle(cg, self.fname, 'HG10UN', self.vfs) | |||
|
82 | ||||
80 | class shelvedstate(object): |
|
83 | class shelvedstate(object): | |
81 | """Handle persistence during unshelving operations. |
|
84 | """Handle persistence during unshelving operations. | |
82 |
|
85 | |||
@@ -237,8 +240,7 b' def createcmd(ui, repo, pats, opts):' | |||||
237 |
|
240 | |||
238 | bases = list(publicancestors(repo[node])) |
|
241 | bases = list(publicancestors(repo[node])) | |
239 | cg = changegroup.changegroupsubset(repo, bases, [node], 'shelve') |
|
242 | cg = changegroup.changegroupsubset(repo, bases, [node], 'shelve') | |
240 |
|
|
243 | shelvedfile(repo, name, 'hg').writebundle(cg) | |
241 | 'HG10UN') |
|
|||
242 | cmdutil.export(repo, [node], |
|
244 | cmdutil.export(repo, [node], | |
243 | fp=shelvedfile(repo, name, 'patch').opener('wb'), |
|
245 | fp=shelvedfile(repo, name, 'patch').opener('wb'), | |
244 | opts=mdiff.diffopts(git=True)) |
|
246 | opts=mdiff.diffopts(git=True)) |
General Comments 0
You need to be logged in to leave comments.
Login now