comparison mercurial/localrepo.py @ 7708:a32847fa0df0

wire protocol: avoid infinite loop (issue1483)
author Matt Mackall <mpm@selenic.com>
date Sun, 25 Jan 2009 10:16:45 -0600
parents f1af59451c0c
children 752325f2208d dd970a311ea8
comparison
equal deleted inserted replaced
7675:011e69b96c69 7708:a32847fa0df0
1235 1235
1236 for top, bottom in pairs: 1236 for top, bottom in pairs:
1237 n, l, i = top, [], 0 1237 n, l, i = top, [], 0
1238 f = 1 1238 f = 1
1239 1239
1240 while n != bottom: 1240 while n != bottom and n != nullid:
1241 p = self.changelog.parents(n)[0] 1241 p = self.changelog.parents(n)[0]
1242 if i == f: 1242 if i == f:
1243 l.append(n) 1243 l.append(n)
1244 f = f * 2 1244 f = f * 2
1245 n = p 1245 n = p