mercurial/localrepo.py
changeset 7709 752325f2208d
parent 7690 1574c2704b11
parent 7708 a32847fa0df0
child 7728 b7ac53f7b061
equal deleted inserted replaced
7707:64fd7f6d3b40 7709:752325f2208d
  1240 
  1240 
  1241         for top, bottom in pairs:
  1241         for top, bottom in pairs:
  1242             n, l, i = top, [], 0
  1242             n, l, i = top, [], 0
  1243             f = 1
  1243             f = 1
  1244 
  1244 
  1245             while n != bottom:
  1245             while n != bottom and n != nullid:
  1246                 p = self.changelog.parents(n)[0]
  1246                 p = self.changelog.parents(n)[0]
  1247                 if i == f:
  1247                 if i == f:
  1248                     l.append(n)
  1248                     l.append(n)
  1249                     f = f * 2
  1249                     f = f * 2
  1250                 n = p
  1250                 n = p