Patchwork [hglib] hglib: fix hg clone --uncompressed option typo

login
register
mail settings
Submitter Long Vu
Date March 24, 2017, 3:18 a.m.
Message ID <a6ae14f83d7a5e822b21.1490325525@E6230>
Download mbox | patch
Permalink /patch/19617/
State Superseded
Headers show

Comments

Long Vu - March 24, 2017, 3:18 a.m.
# HG changeset patch
# User Long Vu <long@tlvu.ca>
# Date 1490322881 14400
#      Thu Mar 23 22:34:41 2017 -0400
# Node ID a6ae14f83d7a5e822b214ab0216e9685395b778f
# Parent  ae38fb772613604dac7fcf63705e8a2a17ff50cd
hglib: fix hg clone --uncompressed option typo

Was getting error.CommandError
"hg clone: option --uncompresses not recognized".

Patch

diff --git a/hglib/__init__.py b/hglib/__init__.py
--- a/hglib/__init__.py
+++ b/hglib/__init__.py
@@ -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 --git a/tests/test-clone.py b/tests/test-clone.py
--- a/tests/test-clone.py
+++ b/tests/test-clone.py
@@ -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)