comparison mercurial/ancestor.py @ 14494:1ffeeb91c55d

check-code: flag 0/1 used as constant Boolean expression
author Martin Geisler <mg@lazybytes.net>
date Wed, 01 Jun 2011 12:38:46 +0200
parents 22565ddb28e7
children 0b03454abae7
comparison
equal deleted inserted replaced
14493:5cc7905bccc9 14494:1ffeeb91c55d
74 gy = y.next() 74 gy = y.next()
75 75
76 # increment each ancestor list until it is closer to root than 76 # increment each ancestor list until it is closer to root than
77 # the other, or they match 77 # the other, or they match
78 try: 78 try:
79 while 1: 79 while True:
80 if gx[0] == gy[0]: 80 if gx[0] == gy[0]:
81 for v in gx[1]: 81 for v in gx[1]:
82 if v in gy[1]: 82 if v in gy[1]:
83 return v 83 return v
84 gy = y.next() 84 gy = y.next()