Show More
@@ -114,9 +114,6 b' class shelvedfile(object):' | |||
|
114 | 114 | def stat(self): |
|
115 | 115 | return self.vfs.stat(self.fname) |
|
116 | 116 | |
|
117 | def opener(self, mode=b'rb'): | |
|
118 | return self.vfs(self.fname, mode) | |
|
119 | ||
|
120 | 117 | |
|
121 | 118 | class Shelf(object): |
|
122 | 119 | """Represents a shelf, including possibly multiple files storing it. |
@@ -193,6 +190,9 b' class Shelf(object):' | |||
|
193 | 190 | finally: |
|
194 | 191 | fp.close() |
|
195 | 192 | |
|
193 | def open_patch(self, mode=b'rb'): | |
|
194 | return self.vfs(self.name + b'.patch', mode) | |
|
195 | ||
|
196 | 196 | |
|
197 | 197 | class shelvedstate(object): |
|
198 | 198 | """Handle persistence during unshelving operations. |
@@ -481,7 +481,7 b' def _shelvecreatedcommit(repo, node, nam' | |||
|
481 | 481 | Shelf(repo, name).writeinfo(info) |
|
482 | 482 | bases = list(mutableancestors(repo[node])) |
|
483 | 483 | Shelf(repo, name).writebundle(bases, node) |
|
484 |
with |
|
|
484 | with Shelf(repo, name).open_patch(b'wb') as fp: | |
|
485 | 485 | cmdutil.exportfile( |
|
486 | 486 | repo, [node], fp, opts=mdiff.diffopts(git=True), match=match |
|
487 | 487 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now