[U-Boot] [PATCH v4] Add 'patman' patch generation, checking and submission script

Wolfgang Denk wd at denx.de
Sat Apr 21 17:26:24 CEST 2012


Dear Simon Glass,

In message <1326589965-4271-1-git-send-email-sjg at chromium.org> you wrote:
> What is this?
> =============
> 
> This tool is a Python script which:
> - Creates patch directly from your branch
> - Cleans them up by removing unwanted tags
> - Inserts a cover letter with change lists
> - Runs the patches through checkpatch.pl and its own checks
> - Optionally emails them out to selected people
> 
> It is intended to automate patch creation and make it a less
> error-prone process. It is useful for U-Boot and Linux work so far,
> since it uses the checkpatch.pl script.
> 
> It is configured almost entirely by tags it finds in your commits.
> This means that you can work on a number of different branches at
> once, and keep the settings with each branch rather than having to
> git format-patch, git send-email, etc. with the correct parameters
> each time. So for example if you put:
> 
> in one of your commits, the series will be sent there.
> 
> See the README file for full details.
> END
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v2:
> - Fix up use of Color in series.py (avoid runtime error)
> 
> Changes in v3:
> - Add a few more tests (but still very incomplete)
> - Add option to display the README
> - Change cc-list tmpfile name to start with patman
> - Expand the README to include info about suggested workflow
> - Find checkpatch.pl in U-Boot tree
> - Fix generation of cc list to match patch names correctly
> - Support git's alias file if found in config sendemail.aliasesfile
> - Support recursive aliases
> - Tidy up gitutil and settings to separate code better
> - Use -M with git format-patch to so that file moves are tracked
> - Use @{upstream} instead of the previous mess (thanks Anton Staff)
> 
> Changes in v4:
> - Add --no-tags options to not Cc maintainers on tags
> - Add per-commit change log (automatically puts them all in cover letter)
> - Allow multiple Signed-off-by tags
> - Append valid tags to the patch
> - Make aliases additive so you can add more to an alias later
> - Sort change lists
> 
>  tools/patman/.gitignore     |    1 +
>  tools/patman/README         |  408 +++++++++++++++++++++++++++++++++++++++
>  tools/patman/checkpatch.py  |  161 ++++++++++++++++
>  tools/patman/command.py     |   72 +++++++
>  tools/patman/commit.py      |   87 +++++++++
>  tools/patman/gitutil.py     |  372 ++++++++++++++++++++++++++++++++++++
>  tools/patman/patchstream.py |  444 +++++++++++++++++++++++++++++++++++++++++++
>  tools/patman/patman         |    1 +
>  tools/patman/patman.py      |  153 +++++++++++++++
>  tools/patman/series.py      |  238 +++++++++++++++++++++++
>  tools/patman/settings.py    |   81 ++++++++
>  tools/patman/terminal.py    |   86 +++++++++
>  tools/patman/test.py        |  250 ++++++++++++++++++++++++
>  13 files changed, 2354 insertions(+), 0 deletions(-)
>  create mode 100644 tools/patman/.gitignore
>  create mode 100644 tools/patman/README
>  create mode 100644 tools/patman/checkpatch.py
>  create mode 100644 tools/patman/command.py
>  create mode 100644 tools/patman/commit.py
>  create mode 100644 tools/patman/gitutil.py
>  create mode 100644 tools/patman/patchstream.py
>  create mode 120000 tools/patman/patman
>  create mode 100755 tools/patman/patman.py
>  create mode 100644 tools/patman/series.py
>  create mode 100644 tools/patman/settings.py
>  create mode 100644 tools/patman/terminal.py
>  create mode 100644 tools/patman/test.py

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The following statement is not true.  The previous statement is true.


More information about the U-Boot mailing list