diff tests/test_util.py @ 257:ffccf0080e54

Move wrappers for hg commands to their own module.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 22:38:29 -0500
parents 06130689a2c8
children 2848d17eae71
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -13,7 +13,7 @@ from mercurial import hg
 from mercurial import node
 from mercurial import ui
 
-import svncommands
+import wrappers
 
 # Fixtures that need to be pulled at a subdirectory of the repo path
 subdir = {'truncatedhistory.svndump': '/project2',
@@ -48,8 +48,8 @@ def load_fixture_and_fetch(fixture_name,
     load_svndump_fixture(repo_path, fixture_name)
     if subdir:
         repo_path += '/' + subdir
-    svncommands.pull(ui.ui(), svn_url=fileurl(repo_path),
-                     hg_repo_path=wc_path, stupid=stupid)
+    wrappers.clone(None, ui.ui(), source=fileurl(repo_path),
+                     dest=wc_path, stupid=stupid, noupdate=True)
     repo = hg.repository(ui.ui(), wc_path)
     return repo
 
@@ -121,8 +121,7 @@ class TestBase(unittest.TestCase):
 
     def pushrevisions(self, stupid=False):
         before = len(self.repo)
-        svncommands.push(ui.ui(), repo=self.repo, hg_repo_path=self.wc_path,
-                         svn_url=fileurl(self.repo_path), stupid=stupid)
+        wrappers.push(None, ui.ui(), repo=self.repo, stupid=stupid)
         after = len(self.repo)
         self.assertEqual(0, after - before)