Mercurial > hgsubversion
comparison tests/test_fetch_truncated.py @ 304:ce676eff002b
First merge, totally untested.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 01 May 2009 10:28:59 +0200 |
parents | ffccf0080e54 |
children | 75f082b5897e |
comparison
equal
deleted
inserted
replaced
303:f423a8780832 | 304:ce676eff002b |
---|---|
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 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 fetch_command.fetch_revisions(ui.ui(), | 14 wrappers.clone(None, ui.ui(), source=svn_url, |
15 svn_url=svn_url, | 15 dest=self.wc_path, stupid=stupid, |
16 hg_repo_path=self.wc_path, | 16 noupdate=True) |
17 stupid=stupid) | |
18 repo = hg.repository(ui.ui(), self.wc_path) | 17 repo = hg.repository(ui.ui(), self.wc_path) |
19 | 18 |
20 # We are converting /project2/trunk coming from: | 19 # We are converting /project2/trunk coming from: |
21 # | 20 # |
22 # Changed paths: | 21 # Changed paths: |