##// END OF EJS Templates
hgk: don't break on repositories with obsolete changesets...
Andrew Shadura -
r22580:271a1dda default
parent child Browse files
Show More
@@ -204,10 +204,12 b' def revtree(ui, args, repo, full="tree",'
204 204 l[chunk - x:] = [0] * (chunk - x)
205 205 break
206 206 if full is not None:
207 l[x] = repo[i + x]
208 l[x].changeset() # force reading
207 if (i + x) in repo:
208 l[x] = repo[i + x]
209 l[x].changeset() # force reading
209 210 else:
210 l[x] = 1
211 if (i + x) in repo:
212 l[x] = 1
211 213 for x in xrange(chunk - 1, -1, -1):
212 214 if l[x] != 0:
213 215 yield (i + x, full is not None and l[x] or None)
@@ -259,6 +261,8 b' def revtree(ui, args, repo, full="tree",'
259 261 # walk the repository looking for commits that are in our
260 262 # reachability graph
261 263 for i, ctx in chlogwalk():
264 if i not in repo:
265 continue
262 266 n = repo.changelog.node(i)
263 267 mask = is_reachable(want_sha1, reachable, n)
264 268 if mask:
General Comments 0
You need to be logged in to leave comments. Login now