Mercurial > hgsubversion
comparison tests/test_util.py @ 893:295a8b48e4e2
Merge
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 12 May 2012 10:07:29 -0500 |
parents | 78db88de9622 |
children | 04dfc23688b9 |
comparison
equal
deleted
inserted
replaced
892:3bfb7e985c47 | 893:295a8b48e4e2 |
---|---|
197 assert cp.rstrip(os.sep) == _rootdir, ( | 197 assert cp.rstrip(os.sep) == _rootdir, ( |
198 'Module location verification failed: hgsubversion was imported ' | 198 'Module location verification failed: hgsubversion was imported ' |
199 'from the wrong path!' | 199 'from the wrong path!' |
200 ) | 200 ) |
201 | 201 |
202 def hgclone(ui, source, dest, update=True): | 202 def hgclone(ui, source, dest, update=True, rev=None): |
203 if getattr(hg, 'peer', None): | 203 if getattr(hg, 'peer', None): |
204 # Since 1.9 (d976542986d2) | 204 # Since 1.9 (d976542986d2) |
205 src, dest = hg.clone(ui, {}, source, dest, update=update) | 205 src, dest = hg.clone(ui, {}, source, dest, update=update, rev=rev) |
206 else: | 206 else: |
207 src, dest = hg.clone(ui, source, dest, update=update) | 207 src, dest = hg.clone(ui, source, dest, update=update, rev=rev) |
208 return src, dest | 208 return src, dest |
209 | 209 |
210 def svnls(repo_path, path, rev='HEAD'): | 210 def svnls(repo_path, path, rev='HEAD'): |
211 path = repo_path + '/' + path | 211 path = repo_path + '/' + path |
212 path = util.normalize_url(fileurl(path)) | 212 path = util.normalize_url(fileurl(path)) |