contrib/hgit
changeset 1243 9d10f89b75a5
parent 1239 29f17e083e84
equal deleted inserted replaced
1242:4a6efec8b698 1243:9d10f89b75a5
   254         visit = [n];
   254         visit = [n];
   255         reachable[i][n] = 1
   255         reachable[i][n] = 1
   256         while visit:
   256         while visit:
   257             n = visit.pop(0)
   257             n = visit.pop(0)
   258             if n in stop_sha1:
   258             if n in stop_sha1:
   259                 break
   259                 continue
   260             for p in repo.changelog.parents(n):
   260             for p in repo.changelog.parents(n):
   261                 if p not in reachable[i]:
   261                 if p not in reachable[i]:
   262                     reachable[i][p] = 1
   262                     reachable[i][p] = 1
   263                     visit.append(p)
   263                     visit.append(p)
   264                 if p in stop_sha1:
   264                 if p in stop_sha1:
   265                     break
   265                     continue
   266 
   266 
   267     # walk the repository looking for commits that are in our
   267     # walk the repository looking for commits that are in our
   268     # reachability graph
   268     # reachability graph
   269     #for i in range(repo.changelog.count()-1, -1, -1):
   269     #for i in range(repo.changelog.count()-1, -1, -1):
   270     for i, changes in chlogwalk():
   270     for i, changes in chlogwalk():