Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 17711:cf204e9829f4
check-code: replace heredocs in unified tests
Heredocs are usually fed to other commands and
shouldn't follow the standard conventions of shell
commands.
This restores the old behaviour of how heredocs
were handled in old-style test files.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 03 Oct 2012 22:09:18 +0200 |
parents | efd1a4378b64 |
children | fbe43efe4a53 |
comparison
equal
deleted
inserted
replaced
17710:95d29533e2ee | 17711:cf204e9829f4 |
---|---|
114 else: | 114 else: |
115 p = r"^ [$>] .*(%s)" % p | 115 p = r"^ [$>] .*(%s)" % p |
116 utestpats[i].append((p, m)) | 116 utestpats[i].append((p, m)) |
117 | 117 |
118 utestfilters = [ | 118 utestfilters = [ |
119 (r"<<(\S+)((.|\n)*?\n > \1)", rephere), | |
119 (r"( *)(#([^\n]*\S)?)", repcomment), | 120 (r"( *)(#([^\n]*\S)?)", repcomment), |
120 ] | 121 ] |
121 | 122 |
122 pypats = [ | 123 pypats = [ |
123 [ | 124 [ |