Mercurial > hgsubversion
comparison tests/comprehensive/test_stupid_pull.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 | 906d3f302b45 |
| children | ffccf0080e54 |
comparison
equal
deleted
inserted
replaced
| 240:1aa1d2d406d9 | 241:4950b18cf949 |
|---|---|
| 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 svncommands |
| 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 svncommands.pull(ui.ui(), svn_url=test_util.fileurl(checkout_path), |
| 22 svn_url=test_util.fileurl(checkout_path), | 22 hg_repo_path=wc2_path, stupid=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 |
