[PATCH] fix hgit stop revision handling

Chris Mason mason at suse.com
Wed Sep 14 13:11:36 CDT 2005


# HG changeset patch
# User root at coffee.suse.com
Fix hgit revtree bug with stop revision handling

diff -r 70195018fbc0 -r f356ea44c9a5 contrib/hgit
--- a/contrib/hgit	Wed Sep 14 01:41:13 2005
+++ b/contrib/hgit	Wed Sep 14 01:41:46 2005
@@ -256,13 +256,13 @@
         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


More information about the Mercurial mailing list