Mercurial > hgsubversion
comparison tests/test_util.py @ 112:e58c2f1de059
Fix a regression in converting repositories with files copied in from outside
branches/tags/trunk where repo root != project root.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 25 Nov 2008 16:21:57 -0600 |
parents | 9b5e528f67f8 |
children | 40474f6c1f84 |
comparison
equal
deleted
inserted
replaced
111:5497d1264b4d | 112:e58c2f1de059 |
---|---|
38 inp = open(os.path.join(FIXTURES, fixture_name)) | 38 inp = open(os.path.join(FIXTURES, fixture_name)) |
39 proc.stdin.write(inp.read()) | 39 proc.stdin.write(inp.read()) |
40 proc.stdin.flush() | 40 proc.stdin.flush() |
41 proc.communicate() | 41 proc.communicate() |
42 | 42 |
43 def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False): | 43 def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False, subdir=''): |
44 load_svndump_fixture(repo_path, fixture_name) | 44 load_svndump_fixture(repo_path, fixture_name) |
45 if subdir: | |
46 repo_path += '/' + subdir | |
45 fetch_command.fetch_revisions(ui.ui(), | 47 fetch_command.fetch_revisions(ui.ui(), |
46 svn_url=fileurl(repo_path), | 48 svn_url=fileurl(repo_path), |
47 hg_repo_path=wc_path, | 49 hg_repo_path=wc_path, |
48 stupid=stupid) | 50 stupid=stupid) |
49 repo = hg.repository(ui.ui(), wc_path) | 51 repo = hg.repository(ui.ui(), wc_path) |