--- a/tests/test-ancestor.py Sun Nov 16 00:24:23 2014 -0500
+++ b/tests/test-ancestor.py Fri Nov 14 14:36:25 2014 -0800
@@ -34,9 +34,6 @@
13: [8]}
pfunc = graph.get
-class mockchangelog(object):
- parentrevs = graph.get
-
def runmissingancestors(revs, bases):
print "%% ancestors of %s and not of %s" % (revs, bases)
print ancestor.missingancestors(revs, bases, pfunc)
@@ -76,7 +73,7 @@
def genlazyancestors(revs, stoprev=0, inclusive=False):
print ("%% lazy ancestor set for %s, stoprev = %s, inclusive = %s" %
(revs, stoprev, inclusive))
- return ancestor.lazyancestors(mockchangelog, revs, stoprev=stoprev,
+ return ancestor.lazyancestors(graph.get, revs, stoprev=stoprev,
inclusive=inclusive)
def printlazyancestors(s, l):