Mercurial > hgsubversion
comparison tests/test_util.py @ 23:1f8854804795
Add tests for tags and fix a bug in the tag-finding code that was found by the tests.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 08 Oct 2008 20:37:01 -0500 |
parents | 95d0109e495e |
children | 072010a271c6 |
comparison
equal
deleted
inserted
replaced
22:95d0109e495e | 23:1f8854804795 |
---|---|
18 inp = open(os.path.join(FIXTURES, fixture_name)) | 18 inp = open(os.path.join(FIXTURES, fixture_name)) |
19 proc.tochild.write(inp.read()) | 19 proc.tochild.write(inp.read()) |
20 proc.tochild.close() | 20 proc.tochild.close() |
21 proc.wait() | 21 proc.wait() |
22 | 22 |
23 def load_fixture_and_fetch(fixture_name, repo_path, wc_path): | 23 def load_fixture_and_fetch(fixture_name, repo_path, wc_path, stupid=False): |
24 load_svndump_fixture(repo_path, fixture_name) | 24 load_svndump_fixture(repo_path, fixture_name) |
25 fetch_command.fetch_revisions(ui.ui(), | 25 fetch_command.fetch_revisions(ui.ui(), |
26 svn_url='file://%s' % repo_path, | 26 svn_url='file://%s' % repo_path, |
27 hg_repo_path=wc_path) | 27 hg_repo_path=wc_path, |
28 stupid=stupid) | |
28 repo = hg.repository(ui.ui(), wc_path) | 29 repo = hg.repository(ui.ui(), wc_path) |
29 return repo | 30 return repo |