Show More
@@ -565,7 +565,6 b' class rebaseruntime(object):' | |||||
565 | editor = cmdutil.getcommiteditor(edit=editopt, editform=editform) |
|
565 | editor = cmdutil.getcommiteditor(edit=editopt, editform=editform) | |
566 | revtoreuse = max(self.state) |
|
566 | revtoreuse = max(self.state) | |
567 |
|
567 | |||
568 | dsguard = None |
|
|||
569 | if self.inmemory: |
|
568 | if self.inmemory: | |
570 | newnode = concludememorynode(repo, revtoreuse, p1, |
|
569 | newnode = concludememorynode(repo, revtoreuse, p1, | |
571 | self.external, |
|
570 | self.external, | |
@@ -575,6 +574,7 b' class rebaseruntime(object):' | |||||
575 | keepbranches=self.keepbranchesf, |
|
574 | keepbranches=self.keepbranchesf, | |
576 | date=self.date, wctx=self.wctx) |
|
575 | date=self.date, wctx=self.wctx) | |
577 | else: |
|
576 | else: | |
|
577 | dsguard = None | |||
578 | if ui.configbool('rebase', 'singletransaction'): |
|
578 | if ui.configbool('rebase', 'singletransaction'): | |
579 | dsguard = dirstateguard.dirstateguard(repo, 'rebase') |
|
579 | dsguard = dirstateguard.dirstateguard(repo, 'rebase') | |
580 | with util.acceptintervention(dsguard): |
|
580 | with util.acceptintervention(dsguard): | |
@@ -849,7 +849,6 b' def _origrebase(ui, repo, inmemory=False' | |||||
849 | return retcode |
|
849 | return retcode | |
850 |
|
850 | |||
851 | tr = None |
|
851 | tr = None | |
852 | dsguard = None |
|
|||
853 |
|
852 | |||
854 | singletr = ui.configbool('rebase', 'singletransaction') |
|
853 | singletr = ui.configbool('rebase', 'singletransaction') | |
855 | if singletr: |
|
854 | if singletr: | |
@@ -861,6 +860,7 b' def _origrebase(ui, repo, inmemory=False' | |||||
861 | with util.acceptintervention(tr): |
|
860 | with util.acceptintervention(tr): | |
862 | # Same logic for the dirstate guard, except we don't create one when |
|
861 | # Same logic for the dirstate guard, except we don't create one when | |
863 | # rebasing in-memory (it's not needed). |
|
862 | # rebasing in-memory (it's not needed). | |
|
863 | dsguard = None | |||
864 | if singletr and not inmemory: |
|
864 | if singletr and not inmemory: | |
865 | dsguard = dirstateguard.dirstateguard(repo, 'rebase') |
|
865 | dsguard = dirstateguard.dirstateguard(repo, 'rebase') | |
866 | with util.acceptintervention(dsguard): |
|
866 | with util.acceptintervention(dsguard): |
General Comments 0
You need to be logged in to leave comments.
Login now