comparison mercurial/localrepo.py @ 2345:4f7745fc9823

n is always 'True', we can only stop the loop with the break statement
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 24 May 2006 01:01:39 +0200
parents dbdce3b99988
children 925610b2d90a
comparison
equal deleted inserted replaced
2320:dbdce3b99988 2345:4f7745fc9823
870 if not nodes: 870 if not nodes:
871 nodes = [self.changelog.tip()] 871 nodes = [self.changelog.tip()]
872 b = [] 872 b = []
873 for n in nodes: 873 for n in nodes:
874 t = n 874 t = n
875 while n: 875 while 1:
876 p = self.changelog.parents(n) 876 p = self.changelog.parents(n)
877 if p[1] != nullid or p[0] == nullid: 877 if p[1] != nullid or p[0] == nullid:
878 b.append((t, n, p[0], p[1])) 878 b.append((t, n, p[0], p[1]))
879 break 879 break
880 n = p[0] 880 n = p[0]