Fix hgit revtree bug with stop revision handling
authorroot@coffee.suse.com
Wed, 14 Sep 2005 13:14:20 -0500
changeset 1243 9d10f89b75a5
parent 1242 4a6efec8b698
child 1244 937ee88da3ef
Fix hgit revtree bug with stop revision handling
contrib/hgit
--- a/contrib/hgit
+++ b/contrib/hgit
@@ -256,13 +256,13 @@ def revtree(args, repo, full="tree", max
         while visit:
             n = visit.pop(0)
             if n in stop_sha1:
-                break
+                continue
             for p in repo.changelog.parents(n):
                 if p not in reachable[i]:
                     reachable[i][p] = 1
                     visit.append(p)
                 if p in stop_sha1:
-                    break
+                    continue
 
     # walk the repository looking for commits that are in our
     # reachability graph