[python-committers] Recent updates to "make patchcheck"
Nick Coghlan
ncoghlan at gmail.com
Sun Mar 12 05:59:52 EDT 2017
More information about the python-committers mailing list
Sun Mar 12 05:59:52 EDT 2017
- Previous message (by thread): [python-committers] 4 weeks with the new workflow: what needs changing?
- Next message (by thread): [python-committers] cherry_picker.py is now in core-workflow repo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi folks, I use "make patchcheck" a fair bit as a checklist for whether or not a change needs any further adjustments before merging, but found it's patch-based approach less then helpful with the new PR-centric workflow. Accordingly, I just merged a few key updates to master and the 2.7/3.5/3.6 branches: - it will automatically determine the current base branch, and check all files changed relatively to that branch, rather than only checking uncommitted changes - it accepts any ".git" entry as indicating a checkout (nor just directories), since "git worktree" defines ".git" as a configuration file The automatic determination of the base branch is as follows: - if an "upstream" remote is defined, it's used as the base branch remote, otherwise "origin" is used - if sys.version_info.releaselevel is "alpha", the base branch is "<remote>/master" - otherwise it is "<remote>/X.Y" (also based on sys.version_info) Note that this works fine for "make patchcheck" (since it uses the just built Python to run Tools/scripts/patchcheck.py), but anyone running the tool directly rather than through the makefile may have to adjust how they do things. Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-committers/attachments/20170312/308c8838/attachment.html>
- Previous message (by thread): [python-committers] 4 weeks with the new workflow: what needs changing?
- Next message (by thread): [python-committers] cherry_picker.py is now in core-workflow repo
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the python-committers mailing list