Mercurial > hgsubversion
changeset 1569:4afe8d7e4602
test_util: hg.clone now wants revs not rev
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 26 May 2018 17:35:27 -0400 |
parents | 6afe15125065 |
children | d55c9d0ba350 |
files | tests/test_util.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -352,8 +352,12 @@ def _verify_our_modules(): def hgclone(ui, source, dest, update=True, rev=None): if getattr(hg, 'peer', None): - # Since 1.9 (d976542986d2) - src, dest = hg.clone(ui, {}, source, dest, update=update, rev=rev) + try: + # Since 1.9 (d976542986d2) + src, dest = hg.clone(ui, {}, source, dest, update=update, rev=rev) + except TypeError: + # hg 4.6+ wants revs instead of rev + src, dest = hg.clone(ui, {}, source, dest, update=update, revs=rev) else: src, dest = hg.clone(ui, source, dest, update=update, rev=rev) return src, dest