Mercurial > hgsubversion
comparison tests/test_util.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 | b1543f243910 |
children | 06130689a2c8 |
comparison
equal
deleted
inserted
replaced
240:1aa1d2d406d9 | 241:4950b18cf949 |
---|---|
11 from mercurial import context | 11 from mercurial import context |
12 from mercurial import hg | 12 from mercurial import hg |
13 from mercurial import node | 13 from mercurial import node |
14 from mercurial import ui | 14 from mercurial import ui |
15 | 15 |
16 import fetch_command | 16 import svncommands |
17 import push_cmd | 17 import push_cmd |
18 | 18 |
19 # Fixtures that need to be pulled at a subdirectory of the repo path | 19 # Fixtures that need to be pulled at a subdirectory of the repo path |
20 subdir = {'truncatedhistory.svndump': '/project2', | 20 subdir = {'truncatedhistory.svndump': '/project2', |
21 'fetch_missing_files_subdir.svndump': '/foo', | 21 'fetch_missing_files_subdir.svndump': '/foo', |
47 | 47 |
48 def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False, subdir=''): | 48 def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False, subdir=''): |
49 load_svndump_fixture(repo_path, fixture_name) | 49 load_svndump_fixture(repo_path, fixture_name) |
50 if subdir: | 50 if subdir: |
51 repo_path += '/' + subdir | 51 repo_path += '/' + subdir |
52 fetch_command.fetch_revisions(ui.ui(), | 52 svncommands.pull(ui.ui(), svn_url=fileurl(repo_path), |
53 svn_url=fileurl(repo_path), | 53 hg_repo_path=wc_path, stupid=stupid) |
54 hg_repo_path=wc_path, | |
55 stupid=stupid) | |
56 repo = hg.repository(ui.ui(), wc_path) | 54 repo = hg.repository(ui.ui(), wc_path) |
57 return repo | 55 return repo |
58 | 56 |
59 def rmtree(path): | 57 def rmtree(path): |
60 # Read-only files cannot be removed under Windows | 58 # Read-only files cannot be removed under Windows |