Show More
@@ -68,6 +68,15 b' class shelvedfile(object):' | |||
|
68 | 68 | raise |
|
69 | 69 | raise util.Abort(_("shelved change '%s' not found") % self.name) |
|
70 | 70 | |
|
71 | def applybundle(self): | |
|
72 | fp = self.opener() | |
|
73 | try: | |
|
74 | gen = changegroup.readbundle(fp, self.fname, self.vfs) | |
|
75 | changegroup.addchangegroup(self.repo, gen, 'unshelve', | |
|
76 | 'bundle:' + self.vfs.join(self.fname)) | |
|
77 | finally: | |
|
78 | fp.close() | |
|
79 | ||
|
71 | 80 | class shelvedstate(object): |
|
72 | 81 | """Handle persistence during unshelving operations. |
|
73 | 82 | |
@@ -560,16 +569,10 b' def unshelve(ui, repo, *shelved, **opts)' | |||
|
560 | 569 | node = cmdutil.commit(ui, repo, commitfunc, [], tempopts) |
|
561 | 570 | tmpwctx = repo[node] |
|
562 | 571 | |
|
563 | try: | |
|
564 | 572 |
|
|
565 |
|
|
|
566 | gen = changegroup.readbundle(fp, fp.name) | |
|
567 | changegroup.addchangegroup(repo, gen, 'unshelve', | |
|
568 | 'bundle:' + fp.name) | |
|
573 | shelvedfile(repo, basename, 'hg').applybundle() | |
|
569 | 574 |
|
|
570 | 575 |
|
|
571 | finally: | |
|
572 | fp.close() | |
|
573 | 576 | |
|
574 | 577 | ui.quiet = oldquiet |
|
575 | 578 |
General Comments 0
You need to be logged in to leave comments.
Login now