Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.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 | 537de0300510 |
comparison
equal
deleted
inserted
replaced
256:7932d098cb5f | 257:ffccf0080e54 |
---|---|
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 svncommands | 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 svncommands.pull(ui.ui(), svn_url=test_util.fileurl(checkout_path), | 21 wrappers.clone(None, ui.ui(), source=test_util.fileurl(checkout_path), |
22 hg_repo_path=wc2_path, stupid=True) | 22 dest=wc2_path, stupid=True, noupdate=True) |
23 self.repo2 = hg.repository(ui.ui(), wc2_path) | 23 self.repo2 = hg.repository(ui.ui(), wc2_path) |
24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) | 24 self.assertEqual(self.repo.branchtags(), self.repo2.branchtags()) |
25 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'))), |
26 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')))) |
27 | 27 |