Mercurial > hg
comparison contrib/hbisect.py @ 1856:b8bd84ad9b67
Make bisect extension work with python2.3
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 08 Mar 2006 05:31:20 +0100 |
parents | 0ba9dee8cfbd |
children | 65949d1c9bf7 |
comparison
equal
deleted
inserted
replaced
1855:0ba9dee8cfbd | 1856:b8bd84ad9b67 |
---|---|
111 node -> number of ancestors (self included) | 111 node -> number of ancestors (self included) |
112 """ | 112 """ |
113 cl = self.repo.changelog | 113 cl = self.repo.changelog |
114 if not stop: | 114 if not stop: |
115 stop = sets.Set([]) | 115 stop = sets.Set([]) |
116 for g in reversed(self.goodrevs): | 116 for i in xrange(len(self.goodrevs)-1, -1, -1): |
117 g = self.goodrevs[i] | |
117 if g in stop: | 118 if g in stop: |
118 continue | 119 continue |
119 stop.update(cl.reachable(g)) | 120 stop.update(cl.reachable(g)) |
120 def num_children(a): | 121 def num_children(a): |
121 """ | 122 """ |