##// END OF EJS Templates
merge: reorder some initialization to make more sense...
Martin von Zweigbergk -
r42601:72522fe7 default
parent child Browse files
Show More
@@ -1977,13 +1977,10 b' def update(repo, node, branchmerge, forc'
1977 1977 wc = repo[None]
1978 1978 pl = wc.parents()
1979 1979 p1 = pl[0]
1980 p2 = repo[node]
1980 1981 pas = [None]
1981 1982 if ancestor is not None:
1982 1983 pas = [repo[ancestor]]
1983
1984 overwrite = force and not branchmerge
1985
1986 p2 = repo[node]
1987 1984 if pas[0] is None:
1988 1985 if repo.ui.configlist('merge', 'preferancestor') == ['*']:
1989 1986 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
@@ -1993,6 +1990,7 b' def update(repo, node, branchmerge, forc'
1993 1990
1994 1991 fp1, fp2, xp1, xp2 = p1.node(), p2.node(), bytes(p1), bytes(p2)
1995 1992
1993 overwrite = force and not branchmerge
1996 1994 ### check phase
1997 1995 if not overwrite:
1998 1996 if len(pl) > 1:
General Comments 0
You need to be logged in to leave comments. Login now