Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.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 | 537de0300510 |
comparison
equal
deleted
inserted
replaced
303:f423a8780832 | 304:ce676eff002b |
---|---|
4 | 4 |
5 from mercurial import hg | 5 from mercurial import hg |
6 from mercurial import ui | 6 from mercurial import ui |
7 | 7 |
8 from tests import test_util | 8 from tests import test_util |
9 import fetch_command | 9 import wrappers |
10 | 10 |
11 | 11 |
12 def _do_case(self, name): | 12 def _do_case(self, name): |
13 subdir = test_util.subdir.get(name, '') | 13 subdir = test_util.subdir.get(name, '') |
14 self._load_fixture_and_fetch(name, subdir=subdir, stupid=False) | 14 self._load_fixture_and_fetch(name, subdir=subdir, stupid=False) |
16 wc2_path = self.wc_path + '_stupid' | 16 wc2_path = self.wc_path + '_stupid' |
17 u = ui.ui() | 17 u = ui.ui() |
18 checkout_path = self.repo_path | 18 checkout_path = self.repo_path |
19 if subdir: | 19 if subdir: |
20 checkout_path += '/' + subdir | 20 checkout_path += '/' + subdir |
21 fetch_command.fetch_revisions(ui.ui(), | 21 wrappers.clone(None, ui.ui(), source=test_util.fileurl(checkout_path), |
22 svn_url=test_util.fileurl(checkout_path), | 22 dest=wc2_path, stupid=True, noupdate=True) |
23 hg_repo_path=wc2_path, | |
24 stupid=True) | |
25 self.repo2 = hg.repository(ui.ui(), wc2_path) | 23 self.repo2 = hg.repository(ui.ui(), wc2_path) |
26 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) | 24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) |
27 self.assertEqual(pickle.load(open(os.path.join(self.wc_path, '.hg', 'svn', 'tag_info'))), | 25 self.assertEqual(pickle.load(open(os.path.join(self.wc_path, '.hg', 'svn', 'tag_info'))), |
28 pickle.load(open(os.path.join(wc2_path, '.hg', 'svn', 'tag_info')))) | 26 pickle.load(open(os.path.join(wc2_path, '.hg', 'svn', 'tag_info')))) |
29 | 27 |