Re: [PATCH hglib] hglib: fix hg clone --uncompressed option typo
On 2017-03-24 05:45 AM, Pulkit Goyal wrote: On Fri, Mar 24, 2017 at 8:48 AM, Long Vu> wrote: # HG changeset patch # User Long Vu > # Date 1490322881 14400 # Thu Mar 23 22:34:41 2017 -0400 # Node ID a6ae14f83d7a5e822b214ab0216e9685395b778f # Parent ae38fb772613604dac7fcf63705e8a2a17ff50cd hglib: fix hg clone --uncompressed option typo This is issue5458. The person pushing this change , add it to commit message so that our Bugzilla bot can mark this as fixed. (I am not sure though how the bugzilla bot works.) Done, resent. ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Re: [PATCH hglib] hglib: fix hg clone --uncompressed option typo
On Fri, Mar 24, 2017 at 8:48 AM, Long Vuwrote: > # HG changeset patch > # User Long Vu > # Date 1490322881 14400 > # Thu Mar 23 22:34:41 2017 -0400 > # Node ID a6ae14f83d7a5e822b214ab0216e9685395b778f > # Parent ae38fb772613604dac7fcf63705e8a2a17ff50cd > hglib: fix hg clone --uncompressed option typo > > This is issue5458. The person pushing this change , add it to commit message so that our Bugzilla bot can mark this as fixed. (I am not sure though how the bugzilla bot works.) > > > ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
[PATCH hglib] hglib: fix hg clone --uncompressed option typo
# HG changeset patch # User Long Vu# 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". 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) ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel