##// END OF EJS Templates
rebase: rerun a rebase on-disk if IMM merge conflicts arise...
Phil Cohen -
r35321:d901a888 default
parent child Browse files
Show More
@@ -759,6 +759,25 b' def rebase(ui, repo, **opts):'
759 759 unresolved conflicts.
760 760
761 761 """
762 if opts.get('continue') or opts.get('abort'):
763 # in-memory rebase is not compatible with resuming rebases.
764 opts['inmemory'] = False
765
766 if opts.get('inmemory', False):
767 try:
768 # in-memory merge doesn't support conflicts, so if we hit any, abort
769 # and re-run as an on-disk merge.
770 return _origrebase(ui, repo, **opts)
771 except error.InMemoryMergeConflictsError:
772 ui.warn(_('hit merge conflicts; re-running rebase without in-memory'
773 ' merge\n'))
774 _origrebase(ui, repo, **{'abort': True})
775 opts['inmemory'] = False
776 return _origrebase(ui, repo, **opts)
777 else:
778 return _origrebase(ui, repo, **opts)
779
780 def _origrebase(ui, repo, **opts):
762 781 opts = pycompat.byteskwargs(opts)
763 782 if 'inmemory' not in opts:
764 783 opts['inmemory'] = False
General Comments 0
You need to be logged in to leave comments. Login now