diff -r 1f9461ef6312 Tools/scripts/patchcheck.py --- a/Tools/scripts/patchcheck.py Mon Feb 20 09:02:57 2012 -0500 +++ b/Tools/scripts/patchcheck.py Mon Feb 20 22:01:05 2012 +0100 @@ -36,6 +36,26 @@ return decorated_fxn +def mq_changed_files(): + """Get the files that changed due mq applied patches. + + These are all the patches between the qparent and qtip tagged ones. + + For more information see also: hg help status + """ + files = set() + cmd = 'hg status --added --modified --rev qparent' + with subprocess.Popen(cmd.split(), + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) as st: + bstdout, _ = st.communicate() + if st.returncode == 0: + for line in bstdout.decode().split('\n'): + if line.startswith('M ') or line.startswith('A '): + files.add(line.rstrip().split()[-1]) + return files + + @status("Getting the list of files that have been added/changed", info=lambda x: n_files_str(len(x))) def changed_files(): @@ -45,7 +65,11 @@ cmd = 'hg status --added --modified --no-status' with subprocess.Popen(cmd.split(), stdout=subprocess.PIPE) as st: - return [x.decode().rstrip() for x in st.stdout] + files = set(x.decode().rstrip() for x in st.stdout) + + files.update(mq_changed_files()) + + return files def report_modified_files(file_paths):

AltStyle によって変換されたページ (->オリジナル) /