Show More
@@ -825,14 +825,14 b' def rebase(ui, repo, **opts):' | |||
|
825 | 825 | # and re-run as an on-disk merge. |
|
826 | 826 | overrides = {('rebase', 'singletransaction'): True} |
|
827 | 827 | with ui.configoverride(overrides, 'rebase'): |
|
828 |
return _o |
|
|
828 | return _dorebase(ui, repo, inmemory=inmemory, **opts) | |
|
829 | 829 | except error.InMemoryMergeConflictsError: |
|
830 | 830 | ui.warn(_('hit merge conflicts; re-running rebase without in-memory' |
|
831 | 831 | ' merge\n')) |
|
832 |
_o |
|
|
833 |
return _o |
|
|
832 | _dorebase(ui, repo, abort=True) | |
|
833 | return _dorebase(ui, repo, inmemory=False, **opts) | |
|
834 | 834 | else: |
|
835 |
return _o |
|
|
835 | return _dorebase(ui, repo, **opts) | |
|
836 | 836 | |
|
837 | 837 | def _dryrunrebase(ui, repo, **opts): |
|
838 | 838 | rbsrt = rebaseruntime(repo, ui, inmemory=True, |
@@ -841,7 +841,7 b' def _dryrunrebase(ui, repo, **opts):' | |||
|
841 | 841 | try: |
|
842 | 842 | overrides = {('rebase', 'singletransaction'): True} |
|
843 | 843 | with ui.configoverride(overrides, 'rebase'): |
|
844 |
_origrebase(ui, repo, inmemory=True, |
|
|
844 | _origrebase(ui, repo, rbsrt, inmemory=True, | |
|
845 | 845 | leaveunfinished=True, **opts) |
|
846 | 846 | except error.InMemoryMergeConflictsError: |
|
847 | 847 | ui.status(_('hit a merge conflict\n')) |
@@ -852,12 +852,12 b' def _dryrunrebase(ui, repo, **opts):' | |||
|
852 | 852 | finally: |
|
853 | 853 | rbsrt._prepareabortorcontinue(isabort=True) |
|
854 | 854 | |
|
855 |
def _o |
|
|
856 | **opts): | |
|
855 | def _dorebase(ui, repo, inmemory=False, **opts): | |
|
856 | rbsrt = rebaseruntime(repo, ui, inmemory, pycompat.byteskwargs(opts)) | |
|
857 | return _origrebase(ui, repo, rbsrt, inmemory=inmemory, **opts) | |
|
858 | ||
|
859 | def _origrebase(ui, repo, rbsrt, inmemory=False, leaveunfinished=False, **opts): | |
|
857 | 860 | opts = pycompat.byteskwargs(opts) |
|
858 | if not rbsrt: | |
|
859 | rbsrt = rebaseruntime(repo, ui, inmemory, opts) | |
|
860 | ||
|
861 | 861 | with repo.wlock(), repo.lock(): |
|
862 | 862 | # Validate input and define rebasing points |
|
863 | 863 | destf = opts.get('dest', None) |
General Comments 0
You need to be logged in to leave comments.
Login now