Mercurial > hgsubversion
comparison tests/test_fetch_truncated.py @ 866:20e73b5ab6f7
test_util: merge load_svndump_fixture() into TestBase
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 19 Apr 2012 18:29:28 +0200 |
parents | 312b37bc5e20 |
children | d741f536f23a |
comparison
equal
deleted
inserted
replaced
865:04729f3a3d17 | 866:20e73b5ab6f7 |
---|---|
6 from mercurial import hg | 6 from mercurial import hg |
7 | 7 |
8 class TestFetchTruncatedHistory(test_util.TestBase): | 8 class TestFetchTruncatedHistory(test_util.TestBase): |
9 def test_truncated_history(self, stupid=False): | 9 def test_truncated_history(self, stupid=False): |
10 # Test repository does not follow the usual layout | 10 # Test repository does not follow the usual layout |
11 test_util.load_svndump_fixture(self.repo_path, 'truncatedhistory.svndump') | 11 repo_path = self.load_svndump('truncatedhistory.svndump') |
12 svn_url = test_util.fileurl(self.repo_path + '/project2') | 12 svn_url = test_util.fileurl(repo_path + '/project2') |
13 commands.clone(self.ui(stupid), svn_url, self.wc_path, noupdate=True) | 13 commands.clone(self.ui(stupid), svn_url, self.wc_path, noupdate=True) |
14 repo = hg.repository(self.ui(stupid), self.wc_path) | 14 repo = hg.repository(self.ui(stupid), self.wc_path) |
15 | 15 |
16 # We are converting /project2/trunk coming from: | 16 # We are converting /project2/trunk coming from: |
17 # | 17 # |