diff tests/test_util.py @ 23:1f8854804795

Add tests for tags and fix a bug in the tag-finding code that was found by the tests.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Oct 2008 20:37:01 -0500
parents 95d0109e495e
children 072010a271c6
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -20,10 +20,11 @@ def load_svndump_fixture(path, fixture_n
     proc.tochild.close()
     proc.wait()
 
-def load_fixture_and_fetch(fixture_name, repo_path, wc_path):
+def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False):
     load_svndump_fixture(repo_path, fixture_name)
     fetch_command.fetch_revisions(ui.ui(),
                                   svn_url='file://%s' % repo_path,
-                                  hg_repo_path=wc_path)
+                                  hg_repo_path=wc_path,
+                                  stupid=stupid)
     repo = hg.repository(ui.ui(), wc_path)
     return repo