equal
deleted
inserted
replaced
769 Returns 0 on success, 1 if nothing to rebase or there are |
769 Returns 0 on success, 1 if nothing to rebase or there are |
770 unresolved conflicts. |
770 unresolved conflicts. |
771 |
771 |
772 """ |
772 """ |
773 inmemory = ui.configbool('rebase', 'experimental.inmemory') |
773 inmemory = ui.configbool('rebase', 'experimental.inmemory') |
774 if opts.get('continue') or opts.get('abort'): |
774 if (opts.get('continue') or opts.get('abort') or |
|
775 repo.currenttransaction() is not None): |
775 # in-memory rebase is not compatible with resuming rebases. |
776 # in-memory rebase is not compatible with resuming rebases. |
|
777 # (Or if it is run within a transaction, since the restart logic can |
|
778 # fail the entire transaction.) |
776 inmemory = False |
779 inmemory = False |
777 |
780 |
778 if inmemory: |
781 if inmemory: |
779 try: |
782 try: |
780 # in-memory merge doesn't support conflicts, so if we hit any, abort |
783 # in-memory merge doesn't support conflicts, so if we hit any, abort |