##// END OF EJS Templates
merge: simplify initialization of "pas"...
Martin von Zweigbergk -
r42602:a5b5ecff default
parent child Browse files
Show More
@@ -1978,10 +1978,9 b' def update(repo, node, branchmerge, forc'
1978 1978 pl = wc.parents()
1979 1979 p1 = pl[0]
1980 1980 p2 = repo[node]
1981 pas = [None]
1982 1981 if ancestor is not None:
1983 1982 pas = [repo[ancestor]]
1984 if pas[0] is None:
1983 else:
1985 1984 if repo.ui.configlist('merge', 'preferancestor') == ['*']:
1986 1985 cahs = repo.changelog.commonancestorsheads(p1.node(), p2.node())
1987 1986 pas = [repo[anc] for anc in (sorted(cahs) or [nullid])]
General Comments 0
You need to be logged in to leave comments. Login now