comparison tests/test_fetch_truncated.py @ 241:4950b18cf949

Move fetch_command.fetch_revisions() to svncommands.pull().
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 08 Apr 2009 17:49:30 +0200
parents 3b60f223893a
children ffccf0080e54
comparison
equal deleted inserted replaced
240:1aa1d2d406d9 241:4950b18cf949
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 fetch_command 6 import svncommands
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 fetch_command.fetch_revisions(ui.ui(), 14 svncommands.pull(ui.ui(), svn_url=svn_url,
15 svn_url=svn_url, 15 hg_repo_path=self.wc_path, stupid=stupid)
16 hg_repo_path=self.wc_path,
17 stupid=stupid)
18 repo = hg.repository(ui.ui(), self.wc_path) 16 repo = hg.repository(ui.ui(), self.wc_path)
19 17
20 # We are converting /project2/trunk coming from: 18 # We are converting /project2/trunk coming from:
21 # 19 #
22 # Changed paths: 20 # Changed paths: