##// END OF EJS Templates
merge: back out single-parent fast-forward merge...
Matt Mackall -
r13550:1792b8a9 stable
parent child Browse files
Show More
@@ -540,7 +540,7 def update(repo, node, branchmerge, forc
540 action += manifestmerge(repo, wc, p2, pa, overwrite, partial)
540 action += manifestmerge(repo, wc, p2, pa, overwrite, partial)
541
541
542 ### apply phase
542 ### apply phase
543 if not branchmerge or fastforward: # just jump to the new rev
543 if not branchmerge: # just jump to the new rev
544 fp1, fp2, xp1, xp2 = fp2, nullid, xp2, ''
544 fp1, fp2, xp1, xp2 = fp2, nullid, xp2, ''
545 if not partial:
545 if not partial:
546 repo.hook('preupdate', throw=True, parent1=xp1, parent2=xp2)
546 repo.hook('preupdate', throw=True, parent1=xp1, parent2=xp2)
@@ -549,7 +549,7 def update(repo, node, branchmerge, forc
549
549
550 if not partial:
550 if not partial:
551 repo.dirstate.setparents(fp1, fp2)
551 repo.dirstate.setparents(fp1, fp2)
552 recordupdates(repo, action, branchmerge and not fastforward)
552 recordupdates(repo, action, branchmerge)
553 if not branchmerge and not fastforward:
553 if not branchmerge and not fastforward:
554 repo.dirstate.setbranch(p2.branch())
554 repo.dirstate.setbranch(p2.branch())
555 finally:
555 finally:
@@ -19,12 +19,7 Fast-forward:
19 $ hg merge b
19 $ hg merge b
20 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
20 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
21 (branch merge, don't forget to commit)
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 $ hg ci -Ammerge
22 $ hg ci -Ammerge
27 created new head
28
23
29 Bogus fast-forward should fail:
24 Bogus fast-forward should fail:
30
25
@@ -209,11 +209,12 Fastforward merge:
209 $ hg branch
209 $ hg branch
210 foo
210 foo
211 $ hg commit -m'Merge ff into foo'
211 $ hg commit -m'Merge ff into foo'
212 created new head
213 $ hg parents
212 $ hg parents
214 changeset: 6:6af8030670c9
213 changeset: 6:917eb54e1b4b
215 branch: foo
214 branch: foo
216 tag: tip
215 tag: tip
216 parent: 4:98d14f698afe
217 parent: 5:6683a60370cb
217 user: test
218 user: test
218 date: Thu Jan 01 00:00:00 1970 +0000
219 date: Thu Jan 01 00:00:00 1970 +0000
219 summary: Merge ff into foo
220 summary: Merge ff into foo
@@ -413,7 +413,6 Check prepush logic with merged branches
413 (branch merge, don't forget to commit)
413 (branch merge, don't forget to commit)
414
414
415 $ hg -R k ci -m merge
415 $ hg -R k ci -m merge
416 created new head
417
416
418 $ hg -R k push -r a j
417 $ hg -R k push -r a j
419 pushing to j
418 pushing to j
General Comments 0
You need to be logged in to leave comments. Login now