Show More
@@ -3339,7 +3339,7 b' def qqueue(ui, repo, name=None, **opts):' | |||||
3339 | continue |
|
3339 | continue | |
3340 | fh.write('%s\n' % (queue,)) |
|
3340 | fh.write('%s\n' % (queue,)) | |
3341 | fh.close() |
|
3341 | fh.close() | |
3342 |
|
|
3342 | repo.vfs.rename('patches.queues.new', _allqueues) | |
3343 |
|
3343 | |||
3344 | if not name or opts.get('list') or opts.get('active'): |
|
3344 | if not name or opts.get('list') or opts.get('active'): | |
3345 | current = _getcurrent() |
|
3345 | current = _getcurrent() | |
@@ -3392,7 +3392,7 b' def qqueue(ui, repo, name=None, **opts):' | |||||
3392 | else: |
|
3392 | else: | |
3393 | fh.write('%s\n' % (queue,)) |
|
3393 | fh.write('%s\n' % (queue,)) | |
3394 | fh.close() |
|
3394 | fh.close() | |
3395 |
|
|
3395 | repo.vfs.rename('patches.queues.new', _allqueues) | |
3396 | _setactivenocheck(name) |
|
3396 | _setactivenocheck(name) | |
3397 | elif opts.get('delete'): |
|
3397 | elif opts.get('delete'): | |
3398 | _delete(name) |
|
3398 | _delete(name) |
@@ -551,15 +551,13 b' def unshelveabort(ui, repo, state, opts)' | |||||
551 | try: |
|
551 | try: | |
552 | checkparents(repo, state) |
|
552 | checkparents(repo, state) | |
553 |
|
553 | |||
554 |
|
|
554 | repo.vfs.rename('unshelverebasestate', 'rebasestate') | |
555 | repo.join('rebasestate')) |
|
|||
556 | try: |
|
555 | try: | |
557 | rebase.rebase(ui, repo, **{ |
|
556 | rebase.rebase(ui, repo, **{ | |
558 | 'abort' : True |
|
557 | 'abort' : True | |
559 | }) |
|
558 | }) | |
560 | except Exception: |
|
559 | except Exception: | |
561 |
|
|
560 | repo.vfs.rename('rebasestate', 'unshelverebasestate') | |
562 | repo.join('unshelverebasestate')) |
|
|||
563 | raise |
|
561 | raise | |
564 |
|
562 | |||
565 | mergefiles(ui, repo, state.wctx, state.pendingctx) |
|
563 | mergefiles(ui, repo, state.wctx, state.pendingctx) | |
@@ -619,15 +617,13 b' def unshelvecontinue(ui, repo, state, op' | |||||
619 | _("unresolved conflicts, can't continue"), |
|
617 | _("unresolved conflicts, can't continue"), | |
620 | hint=_("see 'hg resolve', then 'hg unshelve --continue'")) |
|
618 | hint=_("see 'hg resolve', then 'hg unshelve --continue'")) | |
621 |
|
619 | |||
622 |
|
|
620 | repo.vfs.rename('unshelverebasestate', 'rebasestate') | |
623 | repo.join('rebasestate')) |
|
|||
624 | try: |
|
621 | try: | |
625 | rebase.rebase(ui, repo, **{ |
|
622 | rebase.rebase(ui, repo, **{ | |
626 | 'continue' : True |
|
623 | 'continue' : True | |
627 | }) |
|
624 | }) | |
628 | except Exception: |
|
625 | except Exception: | |
629 | util.rename(repo.join('rebasestate'), |
|
626 | repo.vfs.rename('rebasestate', 'unshelverebasestate') | |
630 | repo.join('unshelverebasestate')) |
|
|||
631 | raise |
|
627 | raise | |
632 |
|
628 | |||
633 | shelvectx = repo['tip'] |
|
629 | shelvectx = repo['tip'] | |
@@ -698,8 +694,7 b' def _rebaserestoredcommit(ui, repo, opts' | |||||
698 | shelvedstate.save(repo, basename, pctx, tmpwctx, stripnodes, |
|
694 | shelvedstate.save(repo, basename, pctx, tmpwctx, stripnodes, | |
699 | branchtorestore, opts.get('keep')) |
|
695 | branchtorestore, opts.get('keep')) | |
700 |
|
696 | |||
701 | util.rename(repo.join('rebasestate'), |
|
697 | repo.vfs.rename('rebasestate', 'unshelverebasestate') | |
702 | repo.join('unshelverebasestate')) |
|
|||
703 | raise error.InterventionRequired( |
|
698 | raise error.InterventionRequired( | |
704 | _("unresolved conflicts (see 'hg resolve', then " |
|
699 | _("unresolved conflicts (see 'hg resolve', then " | |
705 | "'hg unshelve --continue')")) |
|
700 | "'hg unshelve --continue')")) |
General Comments 0
You need to be logged in to leave comments.
Login now