# HG changeset patch # User Long Vu # Date 1490322881 14400 # Node ID 820d7c1e470aaa11dad8f33e9161179a8115cef6 # Parent ae38fb772613604dac7fcf63705e8a2a17ff50cd hglib: fix hg clone --uncompressed option typo (issue5458) Was getting error.CommandError "hg clone: option --uncompresses not recognized". diff -r ae38fb772613 -r 820d7c1e470a hglib/__init__.py --- 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) diff -r ae38fb772613 -r 820d7c1e470a tests/test-clone.py --- 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)