- Groups:
Provide --guess-description and --guess-summary for Mercurial revision ranges
Review Request #1333 — Created Dec. 28, 2009 and submitted
Extracts all commit messages from the repository and concatenates them to form the description. For the summary, the first line is picked.
We have been running a slightly edited version of this in production for months. In diff r3: Tested the diff_between_revisions functionality.
RI
-
-
Rather than a \ at the end, put these all in parens. Please also use parens for the first "foo and not bar" and for the second so it's more clear. Also, the "or ..." on the second line should be aligned with the "options.guess_description"
-
-
I'd imagine we should use splitlines=True instead of splitting manually, unless the problem is that we must first strip the contents?
-
RI
- Change Summary:
-
Extracted common code. I was not aware of the fact that much of the new code was in fact copy&paste code; I've done the patch a long time ago, and for an in-house tool it was good enough that way...
- Diff:
-
Revision 3 (+29 -9)