Chromium Code Reviews| Index: drover.py |
| diff --git a/drover.py b/drover.py |
| index b806eda30da310f926ac63b4010b6403326f605b..ce98da4a34ef650ebf0d086263df7d2c7b6d41a0 100755 |
| --- a/drover.py |
| +++ b/drover.py |
| @@ -595,10 +595,17 @@ def drover(options, args): |
| filename = str(revision)+".txt" |
| out = open(filename,"w") |
| - out.write(action +" " + str(revision) + "\n") |
| - for line in getRevisionLog(url, revision).splitlines(): |
| + drover_title = '%s %s' % (action, revision) |
| + revision_log = getRevisionLog(url, revision).splitlines() |
| + if revision_log: |
| + commit_title = revision_log[0] |
| + if len(commit_title) > 30: |
|
M-A Ruel
2013/03/11 13:10:27
Isn't 30 a tad short?
Isaac (away)
2013/03/11 17:36:11
In the chromium-dev thread "Git-friendly CL Descri
Isaac (away)
2013/03/11 18:45:04
OK after talking to enne@, it looks like 68 char l
|
| + commit_title = commit_title[:27] + '...' |
|
M-A Ruel
2013/03/11 13:10:27
I always use '…' instead. So you can use commit_ti
Isaac (away)
2013/03/11 17:36:11
Are there other examples of commits which use unic
M-A Ruel
2013/03/11 17:45:39
(M=79420) ~/src/b/depot_tools> git gs "…"
rietveld
|
| + drover_title += ' "%s"' % commit_title |
| + out.write(drover_title + '\n\n') |
| + for line in revision_log: |
| out.write('> %s\n' % line) |
| - if (author): |
| + if author: |
| out.write("\nTBR=" + author) |
| out.close() |