comparison tests/test_fetch_truncated.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 4950b18cf949
children 75f082b5897e
comparison
equal deleted inserted replaced
256:7932d098cb5f 257:ffccf0080e54
1 import unittest 1 import unittest
2 2
3 from mercurial import hg 3 from mercurial import hg
4 from mercurial import ui 4 from mercurial import ui
5 5
6 import svncommands 6 import wrappers
7 import test_util 7 import test_util
8 8
9 class TestFetchTruncatedHistory(test_util.TestBase): 9 class TestFetchTruncatedHistory(test_util.TestBase):
10 def test_truncated_history(self, stupid=False): 10 def test_truncated_history(self, stupid=False):
11 # Test repository does not follow the usual layout 11 # Test repository does not follow the usual layout
12 test_util.load_svndump_fixture(self.repo_path, 'truncatedhistory.svndump') 12 test_util.load_svndump_fixture(self.repo_path, 'truncatedhistory.svndump')
13 svn_url = test_util.fileurl(self.repo_path + '/project2') 13 svn_url = test_util.fileurl(self.repo_path + '/project2')
14 svncommands.pull(ui.ui(), svn_url=svn_url, 14 wrappers.clone(None, ui.ui(), source=svn_url,
15 hg_repo_path=self.wc_path, stupid=stupid) 15 dest=self.wc_path, stupid=stupid,
16 noupdate=True)
16 repo = hg.repository(ui.ui(), self.wc_path) 17 repo = hg.repository(ui.ui(), self.wc_path)
17 18
18 # We are converting /project2/trunk coming from: 19 # We are converting /project2/trunk coming from:
19 # 20 #
20 # Changed paths: 21 # Changed paths: