diff tests/test-revlog-ancestry.py @ 16868:eb88ed4269c5

revlog: add optional stoprev arg to revlog.ancestors() This will be used as a step in removing reachable() in a future diff. Doing it now because bryano is in the process of rewriting ancestors in C. This depends on bryano's patch to replace *revs with revs in the declaration of revlog.ancestors.
author Joshua Redstone <joshua.redstone@fb.com>
date Fri, 01 Jun 2012 15:44:13 -0700
parents 1093ad1e8903
children f88c60e740a1
line wrap: on
line diff
--- a/tests/test-revlog-ancestry.py	Fri Jun 01 12:45:16 2012 -0700
+++ b/tests/test-revlog-ancestry.py	Fri Jun 01 15:44:13 2012 -0700
@@ -58,6 +58,10 @@
     for r in repo.changelog.ancestors([5, 4]):
         print r,
 
+    print '\nAncestors of 7, stop at 6'
+    for r in repo.changelog.ancestors([7], 6):
+        print r,
+
     # Descendants
     print '\n\nDescendants of 5'
     for r in repo.changelog.descendants([5]):