Show More
@@ -148,6 +148,7 b' class shelvedfile(object):' | |||||
148 | source='unshelve', |
|
148 | source='unshelve', | |
149 | url='bundle:' + self.vfs.join(self.fname), |
|
149 | url='bundle:' + self.vfs.join(self.fname), | |
150 | targetphase=targetphase) |
|
150 | targetphase=targetphase) | |
|
151 | return self.repo['tip'] | |||
151 | finally: |
|
152 | finally: | |
152 | fp.close() |
|
153 | fp.close() | |
153 |
|
154 | |||
@@ -791,8 +792,7 b' def _unshelverestorecommit(ui, repo, bas' | |||||
791 | node = shelvedfile(repo, basename, 'shelve').readinfo()['node'] |
|
792 | node = shelvedfile(repo, basename, 'shelve').readinfo()['node'] | |
792 | if node is None or node not in repo: |
|
793 | if node is None or node not in repo: | |
793 | with ui.configoverride({('ui', 'quiet'): True}): |
|
794 | with ui.configoverride({('ui', 'quiet'): True}): | |
794 | shelvedfile(repo, basename, 'hg').applybundle() |
|
795 | shelvectx = shelvedfile(repo, basename, 'hg').applybundle() | |
795 | shelvectx = repo['tip'] |
|
|||
796 | # We might not strip the unbundled changeset, so we should keep track of |
|
796 | # We might not strip the unbundled changeset, so we should keep track of | |
797 | # the unshelve node in case we need to reuse it (eg: unshelve --keep) |
|
797 | # the unshelve node in case we need to reuse it (eg: unshelve --keep) | |
798 | if node is None: |
|
798 | if node is None: |
General Comments 0
You need to be logged in to leave comments.
Login now