##// END OF EJS Templates
merge: remove last traces of fastforward merging...
Mads Kiilerich -
r13561:0ab0ceef default
parent child Browse files
Show More
@@ -493,7 +493,6 b' def update(repo, node, branchmerge, forc'
493 493 p1, p2 = pl[0], repo[node]
494 494 pa = p1.ancestor(p2)
495 495 fp1, fp2, xp1, xp2 = p1.node(), p2.node(), str(p1), str(p2)
496 fastforward = False
497 496
498 497 ### check phase
499 498 if not overwrite and len(pl) > 1:
@@ -503,9 +502,7 b' def update(repo, node, branchmerge, forc'
503 502 raise util.Abort(_("merging with a working directory ancestor"
504 503 " has no effect"))
505 504 elif pa == p1:
506 if p1.branch() != p2.branch():
507 fastforward = True
508 else:
505 if p1.branch() == p2.branch():
509 506 raise util.Abort(_("nothing to merge (use 'hg update'"
510 507 " or check 'hg heads')"))
511 508 if not force and (wc.files() or wc.deleted()):
@@ -550,7 +547,7 b' def update(repo, node, branchmerge, forc'
550 547 if not partial:
551 548 repo.dirstate.setparents(fp1, fp2)
552 549 recordupdates(repo, action, branchmerge)
553 if not branchmerge and not fastforward:
550 if not branchmerge:
554 551 repo.dirstate.setbranch(p2.branch())
555 552 finally:
556 553 wlock.release()
General Comments 0
You need to be logged in to leave comments. Login now