Show More
@@ -461,7 +461,7 def pathtofiles(repo, files): | |||||
461 |
|
461 | |||
462 | def unshelveabort(ui, repo, state, opts): |
|
462 | def unshelveabort(ui, repo, state, opts): | |
463 | """subcommand that abort an in-progress unshelve""" |
|
463 | """subcommand that abort an in-progress unshelve""" | |
464 | lock = None |
|
464 | with repo.lock(): | |
465 | try: |
|
465 | try: | |
466 | checkparents(repo, state) |
|
466 | checkparents(repo, state) | |
467 |
|
467 | |||
@@ -476,15 +476,12 def unshelveabort(ui, repo, state, opts) | |||||
476 | repo.join('unshelverebasestate')) |
|
476 | repo.join('unshelverebasestate')) | |
477 | raise |
|
477 | raise | |
478 |
|
478 | |||
479 | lock = repo.lock() |
|
|||
480 |
|
||||
481 | mergefiles(ui, repo, state.wctx, state.pendingctx) |
|
479 | mergefiles(ui, repo, state.wctx, state.pendingctx) | |
482 |
|
480 | repair.strip(ui, repo, state.stripnodes, backup=False, | ||
483 | repair.strip(ui, repo, state.stripnodes, backup=False, topic='shelve') |
|
481 | topic='shelve') | |
484 | finally: |
|
482 | finally: | |
485 | shelvedstate.clear(repo) |
|
483 | shelvedstate.clear(repo) | |
486 | ui.warn(_("unshelve of '%s' aborted\n") % state.name) |
|
484 | ui.warn(_("unshelve of '%s' aborted\n") % state.name) | |
487 | lockmod.release(lock) |
|
|||
488 |
|
485 | |||
489 | def mergefiles(ui, repo, wctx, shelvectx): |
|
486 | def mergefiles(ui, repo, wctx, shelvectx): | |
490 | """updates to wctx and merges the changes from shelvectx into the |
|
487 | """updates to wctx and merges the changes from shelvectx into the |
General Comments 0
You need to be logged in to leave comments.
Login now