Mercurial > hgsubversion
comparison tests/test_util.py @ 278:60acc38eac96
clone: prefer tip of default to overall tip when updating
| author | Martijn Pieters <mj@zopatista.com> |
|---|---|
| date | Fri, 24 Apr 2009 20:36:38 -0500 |
| parents | 3848a7f9b983 |
| children | 913fd8aa221c |
comparison
equal
deleted
inserted
replaced
| 277:3848a7f9b983 | 278:60acc38eac96 |
|---|---|
| 43 inp = open(os.path.join(FIXTURES, fixture_name)) | 43 inp = open(os.path.join(FIXTURES, fixture_name)) |
| 44 proc.stdin.write(inp.read()) | 44 proc.stdin.write(inp.read()) |
| 45 proc.stdin.flush() | 45 proc.stdin.flush() |
| 46 proc.communicate() | 46 proc.communicate() |
| 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='', noupdate=True): |
| 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 wrappers.clone(None, ui.ui(), source=fileurl(repo_path), | 52 wrappers.clone(None, ui.ui(), source=fileurl(repo_path), |
| 53 dest=wc_path, stupid=stupid, noupdate=True) | 53 dest=wc_path, stupid=stupid, noupdate=noupdate) |
| 54 repo = hg.repository(ui.ui(), wc_path) | 54 repo = hg.repository(ui.ui(), wc_path) |
| 55 return repo | 55 return repo |
| 56 | 56 |
| 57 def rmtree(path): | 57 def rmtree(path): |
| 58 # Read-only files cannot be removed under Windows | 58 # Read-only files cannot be removed under Windows |
