Submitter | Matt Mackall |
---|---|
Date | Sept. 23, 2015, 4:16 p.m. |
Message ID | <1443025008.10817.152.camel@selenic.com> |
Download | mbox | patch |
Permalink | /patch/10594/ |
State | Accepted |
Headers | show |
Comments
On 09/23/2015 09:16 AM, Matt Mackall wrote: > On Wed, 2015-09-23 at 02:05 -0700, Pierre-Yves David wrote: >> >> On 09/22/2015 05:15 PM, Siddharth Agarwal wrote: >>> # HG changeset patch >>> # User Siddharth Agarwal <sid0@fb.com> >>> # Date 1442966194 25200 >>> # Tue Sep 22 16:56:34 2015 -0700 >>> # Node ID 75950e78a828c5994bd36974bdfbc5f62a0009a3 >>> # Parent 2e9d6b73a2a88c044175a05d32626b18afc0e889 >>> ui: avoid mutable default arguments >> >> eeeeeeeerk, patches 3 and 4 pushed to the clowncopter. > > We've got a bunch more {} and []. I've cleaned these up, this is an about 27 patches series that can be pulled here: hg pull -r 266a98ba3e42 http://hg.netv6.net/marmoute-wip/mercurial/ hg summ-- Pierre-Yves David
On 09/24/2015 08:51 AM, Kevin Bullock wrote: >> On Sep 24, 2015, at 08:05, Pierre-Yves David >> <pierre-yves.david@ens-lyon.org >> <mailto:pierre-yves.david@ens-lyon.org>> wrote: >> >> On 09/23/2015 09:16 AM, Matt Mackall wrote: >>> On Wed, 2015-09-23 at 02:05 -0700, Pierre-Yves David wrote: >>>> >>>> On 09/22/2015 05:15 PM, Siddharth Agarwal wrote: >>>>> # HG changeset patch >>>>> # User Siddharth Agarwal <sid0@fb.com <mailto:sid0@fb.com>> >>>>> # Date 1442966194 25200 >>>>> # Tue Sep 22 16:56:34 2015 -0700 >>>>> # Node ID 75950e78a828c5994bd36974bdfbc5f62a0009a3 >>>>> # Parent 2e9d6b73a2a88c044175a05d32626b18afc0e889 >>>>> ui: avoid mutable default arguments >>>> >>>> eeeeeeeerk, patches 3 and 4 pushed to the clowncopter. >>> >>> We've got a bunch more {} and []. >> >> I've cleaned these up, this is an about 27 patches series that can be >> pulled here: >> >> hg pull -r 266a98ba3e42 http://hg.netv6.net/marmoute-wip/mercurial/ > > Series LGTM. Okay, that is now pushed to the clowcopter.
Patch
diff -r 60558319ce72 contrib/check-code.py --- a/contrib/check-code.py Tue Sep 22 16:56:34 2015 -0700 +++ b/contrib/check-code.py Wed Sep 23 11:13:25 2015 -0500 @@ -291,6 +291,7 @@ (r'os\.path\.join\(.*, *(""|\'\')\)', "use pathutil.normasprefix(path) instead of os.path.join(path, '')"), (r'\s0[0-7]+\b', 'legacy octal syntax; use "0o" prefix instead of "0"'), + (r'def.*[( ]\w+=\{\}', "don't use mutable default arguments"), ], # warnings [