Show More
@@ -540,7 +540,7 def update(repo, node, branchmerge, forc | |||
|
540 | 540 | action += manifestmerge(repo, wc, p2, pa, overwrite, partial) |
|
541 | 541 | |
|
542 | 542 | ### apply phase |
|
543 |
if not branchmerge |
|
|
543 | if not branchmerge: # just jump to the new rev | |
|
544 | 544 | fp1, fp2, xp1, xp2 = fp2, nullid, xp2, '' |
|
545 | 545 | if not partial: |
|
546 | 546 | repo.hook('preupdate', throw=True, parent1=xp1, parent2=xp2) |
@@ -549,7 +549,7 def update(repo, node, branchmerge, forc | |||
|
549 | 549 | |
|
550 | 550 | if not partial: |
|
551 | 551 | repo.dirstate.setparents(fp1, fp2) |
|
552 |
recordupdates(repo, action, branchmerge |
|
|
552 | recordupdates(repo, action, branchmerge) | |
|
553 | 553 | if not branchmerge and not fastforward: |
|
554 | 554 | repo.dirstate.setbranch(p2.branch()) |
|
555 | 555 | finally: |
@@ -19,12 +19,7 Fast-forward: | |||
|
19 | 19 | $ hg merge b |
|
20 | 20 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
21 | 21 | (branch merge, don't forget to commit) |
|
22 | $ hg branch | |
|
23 | default | |
|
24 | $ hg parent --template '{rev}:{node|short} {branches}: {desc}\n' | |
|
25 | 1:06c2121185be b: b | |
|
26 | 22 | $ hg ci -Ammerge |
|
27 | created new head | |
|
28 | 23 | |
|
29 | 24 | Bogus fast-forward should fail: |
|
30 | 25 |
@@ -209,11 +209,12 Fastforward merge: | |||
|
209 | 209 | $ hg branch |
|
210 | 210 | foo |
|
211 | 211 | $ hg commit -m'Merge ff into foo' |
|
212 | created new head | |
|
213 | 212 | $ hg parents |
|
214 |
changeset: 6: |
|
|
213 | changeset: 6:917eb54e1b4b | |
|
215 | 214 | branch: foo |
|
216 | 215 | tag: tip |
|
216 | parent: 4:98d14f698afe | |
|
217 | parent: 5:6683a60370cb | |
|
217 | 218 | user: test |
|
218 | 219 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
219 | 220 | summary: Merge ff into foo |
General Comments 0
You need to be logged in to leave comments.
Login now