comparison mercurial/commands.py @ 18181:c7d258cd77e5

commands: fix implicit tuple that is invalid syntax in Python3
author Augie Fackler <raf@durin42.com>
date Tue, 01 Jan 2013 13:18:33 -0600
parents c5bd753c5bc6
children 6a91cbb67907
comparison
equal deleted inserted replaced
18180:c582a71457e5 18181:c7d258cd77e5
1529 fn = "mf" 1529 fn = "mf"
1530 p1 = repo[ps[0]] 1530 p1 = repo[ps[0]]
1531 if len(ps) > 1: 1531 if len(ps) > 1:
1532 p2 = repo[ps[1]] 1532 p2 = repo[ps[1]]
1533 pa = p1.ancestor(p2) 1533 pa = p1.ancestor(p2)
1534 base, local, other = [x[fn].data() for x in pa, p1, p2] 1534 base, local, other = [x[fn].data() for x in (pa, p1,
1535 p2)]
1535 m3 = simplemerge.Merge3Text(base, local, other) 1536 m3 = simplemerge.Merge3Text(base, local, other)
1536 ml = [l.strip() for l in m3.merge_lines()] 1537 ml = [l.strip() for l in m3.merge_lines()]
1537 ml.append("") 1538 ml.append("")
1538 elif at > 0: 1539 elif at > 0:
1539 ml = p1[fn].data().split("\n") 1540 ml = p1[fn].data().split("\n")