DescriptionThis commit improves upload.py by:
a) automatically creating a subject line and description from the git commit message when --rev <git commit hash> is used on the command line.
b) allowing specification of commit ranges (ie --rev origin..HEAD) and automatically titling the patches in the standard format ([PATCH 1/4], etc).
c) using the .git/description file to add an extra prefix (if set), to ease the use of a single reviews instance for code from multiple git repositories.
By filling in implementations of the new abstract methods added to VersionControlSystem, these features can be added for other version control systems as well.
Documentation:
* To upload a specific git commit for review, use the --rev option, for example:
$ upload.py --rev 960831af2317f0b0b52ee4d13f980d2a56e91cd5
This will make the subject line default to the git log subject (first line of the commit message) and the description default to the git log body (all
but first line of the commit message) with a terse git commitid. If you set .git/description in your checkout, it will add this to the subject line, which helps distinguish patches to different components. For example, I've
set mini/.git/description to "mini", so my patch subject lines for commits to mini start "[PATCH] mini: ".
* You can use ranges in your --rev specification; this will create multiple issues for review, one per commit in the range. For example:
$ upload.py --rev master...my-branch
or
$ upload.py --rev origin..HEAD
The subject lines for each commit begin "[PATCH 1/4]", "[PATCH 2/4]", etc.
Patch Set 1 #
Total comments: 3
Patch Set 2 : upload.py: improve git support; add revision range support [updated] #
Total comments: 4
MessagesTotal messages: 8
|