##// END OF EJS Templates
rebase: also include commit of collapsed commits in single transaction...
Martin von Zweigbergk -
r36945:17a744c5 default
parent child Browse files
Show More
@@ -573,16 +573,12 b' class rebaseruntime(object):'
573 keepbranches=self.keepbranchesf,
573 keepbranches=self.keepbranchesf,
574 date=self.date, wctx=self.wctx)
574 date=self.date, wctx=self.wctx)
575 else:
575 else:
576 dsguard = None
576 newnode = concludenode(repo, revtoreuse, p1, self.external,
577 if ui.configbool('rebase', 'singletransaction'):
577 commitmsg=commitmsg,
578 dsguard = dirstateguard.dirstateguard(repo, 'rebase')
578 extrafn=_makeextrafn(self.extrafns),
579 with util.acceptintervention(dsguard):
579 editor=editor,
580 newnode = concludenode(repo, revtoreuse, p1, self.external,
580 keepbranches=self.keepbranchesf,
581 commitmsg=commitmsg,
581 date=self.date)
582 extrafn=_makeextrafn(self.extrafns),
583 editor=editor,
584 keepbranches=self.keepbranchesf,
585 date=self.date)
586 if newnode is not None:
582 if newnode is not None:
587 newrev = repo[newnode].rev()
583 newrev = repo[newnode].rev()
588 for oldrev in self.state:
584 for oldrev in self.state:
@@ -864,8 +860,7 b' def _origrebase(ui, repo, inmemory=False'
864 dsguard = dirstateguard.dirstateguard(repo, 'rebase')
860 dsguard = dirstateguard.dirstateguard(repo, 'rebase')
865 with util.acceptintervention(dsguard):
861 with util.acceptintervention(dsguard):
866 rbsrt._performrebase(tr)
862 rbsrt._performrebase(tr)
867
863 rbsrt._finishrebase()
868 rbsrt._finishrebase()
869
864
870 def _definedestmap(ui, repo, rbsrt, destf=None, srcf=None, basef=None,
865 def _definedestmap(ui, repo, rbsrt, destf=None, srcf=None, basef=None,
871 revf=None, destspace=None):
866 revf=None, destspace=None):
@@ -29,11 +29,9 b' Check that a simple rebase works'
29 > |/
29 > |/
30 > A
30 > A
31 > EOF
31 > EOF
32 - We should only see two status stored messages. One from the start, one from
32 - We should only see one status stored message. It comes from the start.
33 - the end.
34 $ hg rebase --debug -b D -d Z | grep 'status stored'
33 $ hg rebase --debug -b D -d Z | grep 'status stored'
35 rebase status stored
34 rebase status stored
36 rebase status stored
37 $ hg tglog
35 $ hg tglog
38 o 5: D
36 o 5: D
39 |
37 |
@@ -64,7 +62,7 b' Check that --collapse works'
64 > A
62 > A
65 > EOF
63 > EOF
66 - We should only see two status stored messages. One from the start, one from
64 - We should only see two status stored messages. One from the start, one from
67 - the end.
65 - cmdutil.commitforceeditor() which forces tr.writepending()
68 $ hg rebase --collapse --debug -b D -d Z | grep 'status stored'
66 $ hg rebase --collapse --debug -b D -d Z | grep 'status stored'
69 rebase status stored
67 rebase status stored
70 rebase status stored
68 rebase status stored
@@ -162,12 +160,14 b' rebase can then be continued'
162 rebasing 1:112478962961 "B" (B)
160 rebasing 1:112478962961 "B" (B)
163 rebasing 3:26805aba1e60 "C" (C)
161 rebasing 3:26805aba1e60 "C" (C)
164 rebasing 5:f585351a92f8 "D" (D tip)
162 rebasing 5:f585351a92f8 "D" (D tip)
163 transaction abort!
164 rollback completed
165 abort: edit failed: false exited with status 1
165 abort: edit failed: false exited with status 1
166 [255]
166 [255]
167 $ hg tglog
167 $ hg tglog
168 o 5: D
168 o 5: D
169 |
169 |
170 | @ 4: Z
170 | o 4: Z
171 | |
171 | |
172 o | 3: C
172 o | 3: C
173 | |
173 | |
@@ -178,9 +178,9 b' rebase can then be continued'
178 o 0: A
178 o 0: A
179
179
180 $ hg rebase --continue
180 $ hg rebase --continue
181 already rebased 1:112478962961 "B" (B) as e9b22a392ce0
181 rebasing 1:112478962961 "B" (B)
182 already rebased 3:26805aba1e60 "C" (C) as e9b22a392ce0
182 rebasing 3:26805aba1e60 "C" (C)
183 already rebased 5:f585351a92f8 "D" (D tip) as e9b22a392ce0
183 rebasing 5:f585351a92f8 "D" (D tip)
184 saved backup bundle to $TESTTMP/collapse-cancel-editor/.hg/strip-backup/112478962961-cb2a9b47-rebase.hg
184 saved backup bundle to $TESTTMP/collapse-cancel-editor/.hg/strip-backup/112478962961-cb2a9b47-rebase.hg
185 $ hg tglog
185 $ hg tglog
186 o 3: Collapsed revision
186 o 3: Collapsed revision
General Comments 0
You need to be logged in to leave comments. Login now