13 Commits

Author SHA1 Message Date
Nick Coghlan
d6d943a090 Issue #29798: Handle git worktree in patchcheck (#1057)
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
2017-04-09 18:32:48 +10:00
Nick Coghlan
ee10fb9c5b bpo-29798: Handle git worktree in make patchcheck (#629) (#635)
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
(cherry picked from commit 6a6d090612)
2017-03-12 20:03:45 +10:00
Nick Coghlan
c8869af89e [2.7] bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#628)
Additional changes needed to backport:

- dropped legacy SVN support from patchcheck
- use subprocess.PIPE to silence expected error output
- don't try to use subprocess.Popen as a context manager
- don't try to pass a keyword argument to str.split()

(cherry picked from commit 482f7a274f)
2017-03-12 19:34:16 +10:00
Georg Brandl
6a1184c024 Closes #22663: patchcheck: only modify text files under Doc/ 2014-10-19 11:54:08 +02:00
Terry Jan Reedy
68ad1d1372 Issue #18439: Make patchcheck work on Windows for ACKS, NEWS. 2013-07-21 20:57:44 -04:00
Ezio Melotti
9e9cb2810e Add a note about checking refleaks to patchcheck. 2013-01-11 14:07:47 +02:00
Nadeem Vawda
f00011aff4 Issue #14053: Fix "make patchcheck" to work with MQ.
Patch by Francisco Martín Brugué
2012-02-22 11:40:09 +02:00
Éric Araujo
a5afa4955d patchcheck: don’t talk about the test suite when no code file were changed.
The line about the test suite will still get printed for changes in
Tools for example, which aren’t covered by the test suite, but it’s not
a big deal IMO.
2011-08-19 08:41:00 +02:00
Éric Araujo
35a7f5516d Let “make patchcheck” work for out-of-dir builds (#9860) 2011-07-30 21:34:04 +02:00
Éric Araujo
0fb681ea50 Fix missing or shebangs and executable bits for scripts (#10318) 2011-07-29 12:06:13 +02:00
Georg Brandl
ef212e0a51 Merged revisions 85766-85767 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85766 | georg.brandl | 2010-10-21 09:40:03 +0200 (Do, 21 Okt 2010) | 1 line

  #10159: sort completion matches before comparing to dir() result.
........
  r85767 | georg.brandl | 2010-10-21 14:49:28 +0200 (Do, 21 Okt 2010) | 1 line

  #9095, #8912, #8999: add support in patchcheck for Mercurial checkouts, C file reindenting, and docs whitespace fixing.
........
2010-11-26 08:04:57 +00:00
Benjamin Peterson
eee9583065 rewrite verbose conditionals 2009-01-10 17:18:55 +00:00
Brett Cannon
a8b09fd4c3 Add Tools/scripts/patchcheck.py. Invoked from `make check`, the script does
some verification:

- Runs reindent.py on all .py files.
- Checks if any changes in Doc exist.
- Whether Misc/ACKS was changed.
- Whether Misc/NEWS was changed.

The hope is that ``make check`` can become a command anybody can run to get
reminders about what all the requisite steps needed to create a proper
patch/checkin.
2008-03-18 17:25:13 +00:00