Mercurial > python-hglib
changeset 184:820d7c1e470a 2.4
hglib: fix hg clone --uncompressed option typo (issue5458)
Was getting error.CommandError
"hg clone: option --uncompresses not recognized".
author | Long Vu <long@tlvu.ca> |
---|---|
date | Thu, 23 Mar 2017 22:34:41 -0400 |
parents | ae38fb772613 |
children | 8e959ad6a25c |
files | hglib/__init__.py tests/test-clone.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hglib/__init__.py Tue Jan 03 17:21:08 2017 -0600 +++ b/hglib/__init__.py Thu Mar 23 22:34:41 2017 -0400 @@ -28,7 +28,7 @@ insecure=False, encoding=None, configs=None): args = util.cmdbuilder('clone', source, dest, noupdate=noupdate, updaterev=updaterev, rev=rev, branch=branch, - pull=pull, uncompresses=uncompressed, + pull=pull, uncompressed=uncompressed, e=ssh, remotecmd=remotecmd, insecure=insecure) args.insert(0, HGPATH)
--- a/tests/test-clone.py Tue Jan 03 17:21:08 2017 -0600 +++ b/tests/test-clone.py Thu Mar 23 22:34:41 2017 -0400 @@ -11,3 +11,6 @@ self.assertRaises(ValueError, cloned.log) cloned.open() self.assertEquals(self.client.log(), cloned.log()) + + def test_clone_uncompressed(self): + hglib.clone(b('.'), b('cloned'), uncompressed=True)