##// END OF EJS Templates
internals: extract frame-based protocol docs to own document...
internals: extract frame-based protocol docs to own document wireprotocol.txt is quite long and difficult to digest. The frame-based protocol is effectively a standalone concept (and could even be used outside of Mercurial). So this commit extracts its docs to a standalone file. The first few paragraphs were rewritten as part of the extraction. Sections headers were adjusted accordingly. Existing referalls in wireprotocol.txt were updated to refer to the new doc / concept, which I've started referring to as `hgrpc`. I'm on the fence as to whether to move the HTTP and SSH transport details to the new doc as well. For now, I'm leaving them in wireprotocol.txt. Differential Revision: https://phab.mercurial-scm.org/D4443

File last commit:

r33367:6029939f default
r39594:b0e0db15 default
Show More
filterpyflakes.py
37 lines | 890 B | text/x-python | PythonLexer
/ tests / filterpyflakes.py
timeless
tests: add pyflakes checking for unused imports
r14140 #!/usr/bin/env python
# Filter output by pyflakes to control which warnings we check
Robert Stanca
py3: use print_function in filterpyflakes.py
r28724 from __future__ import absolute_import, print_function
Gregory Szorc
tests/filterpyflakes: use absolute_import
r27285
import re
import sys
timeless
tests: add pyflakes checking for unused imports
r14140
timeless
test-pyflake: improve sorting algorithm
r14173 lines = []
timeless
tests: add pyflakes checking for unused imports
r14140 for line in sys.stdin:
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 # We blacklist tests that are too noisy for us
timeless
tests: add pyflakes checking for assigned to but never used
r14175 pats = [
Gregory Szorc
tests: remove special handling for undefined memoryview...
r32277 r"undefined name 'WindowsError'",
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 r"redefinition of unused '[^']+' from line",
Yuya Nishihara
filterpyflakes: allow reexporting pure symbols from cffi modules...
r32510 # for cffi, allow re-exports from pure.*
r"cffi/[^:]*:.*\bimport \*' used",
r"cffi/[^:]*:.*\*' imported but unused",
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 ]
Matt Mackall
filterpyflakes: make memoryview filtering unconditional
r21293
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 keep = True
for pat in pats:
if re.search(pat, line):
keep = False
Simon Heimberg
tests: simplify and document the sorting of pyflake messages...
r19335 break # pattern matches
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 if keep:
fn = line.split(':', 1)[0]
f = open(fn)
data = f.read()
f.close()
if 'no-' 'check-code' in data:
continue
lines.append(line)
timeless
test-pyflake: improve sorting algorithm
r14173
Augie Fackler
filterpyflakes: dramatically simplify the entire thing by blacklisting...
r30421 for line in lines:
timeless
tests: add pyflakes checking for unused imports
r14140 sys.stdout.write(line)
Robert Stanca
py3: use print_function in filterpyflakes.py
r28724 print()