Mercurial > hg
view tests/test-check-code @ 11965:77f1f206e135 stable
mq: don't inherit default and default-push paths with --mq (issue2333)
Configuration from the outer repo is inherited to the patches repo when --mq is
used.
In case the patches repo only has paths.default configured but the outer repo
has paths.default-push then the inherited default-push will win. Very
confusing.
Inheriting the default paths is however wrong in all sane cases, so now we
explicitly remove them.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 18 Aug 2010 02:43:45 +0200 |
parents | f325db39c8b9 |
children | 0cae834cdc80 |
line wrap: on
line source
#!/bin/sh #cd `dirname $0` cat > correct.py <<EOF def toto(arg1, arg2): del arg2 return (5 + 6, 9) EOF cat > wrong.py <<EOF def toto( arg1, arg2): del(arg2) return ( 5+6, 9) EOF cat > quote.py <<EOF # let's use quote in comments (''' ( 4x5 ) but """\\''' and finally''', """let's fool checkpatch""", '1+2', '"""', 42+1, """and ( 4-1 ) """, "( 1+1 )\" and ") a, '\\\\\\\\', "\\\\\\" x-2", "c-1" EOF cat > non-py24.py <<EOF # Using builtins that does not exist in Python 2.4 if any(): x = all() y = format(x) # Do not complain about our own definition def any(x): pass EOF check_code=`dirname $0`/../contrib/check-code.py ${check_code} ./wrong.py ./correct.py ./quote.py ./non-py24.py