--- a/tests/test-walkrepo.py Sat Dec 06 20:10:31 2008 +0100
+++ b/tests/test-walkrepo.py Wed Dec 10 00:16:12 2008 +0100
@@ -12,12 +12,6 @@
mkdir('subdir')
chdir('subdir')
hg.repository(u, 'sub1', create=1)
-chdir('sub1')
-hg.repository(u, 'inside_sub1', create=1)
-chdir('.hg')
-hg.repository(u, 'patches', create=1)
-chdir(os.path.pardir)
-chdir(os.path.pardir)
mkdir('subsubdir')
chdir('subsubdir')
hg.repository(u, 'subsub1', create=1)
@@ -28,12 +22,12 @@
def runtest():
reposet = frozenset(walkrepos('.', followsym=True))
- if sym and (len(reposet) != 5):
+ if sym and (len(reposet) != 3):
print "reposet = %r" % (reposet,)
- raise SystemExit(1, "Found %d repositories when I should have found 5" % (len(reposet),))
- if (not sym) and (len(reposet) != 4):
+ raise SystemExit(1, "Found %d repositories when I should have found 3" % (len(reposet),))
+ if (not sym) and (len(reposet) != 2):
print "reposet = %r" % (reposet,)
- raise SystemExit(1, "Found %d repositories when I should have found 4" % (len(reposet),))
+ raise SystemExit(1, "Found %d repositories when I should have found 2" % (len(reposet),))
sub1set = frozenset((pjoin('.', 'sub1'),
pjoin('.', 'circle', 'subdir', 'sub1')))
if len(sub1set & reposet) != 1: