Make drover not eliminate '-'s from commit messages.

BUG=none
TEST=drover still works as before, but hyphens are no longer eliminated from commit messages
Review URL: http://codereview.chromium.org/2488004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@48771 0039d316-1c4b-4281-b951-d872f2087c98
parent 707c1487
#!/usr/bin/python
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
......@@ -150,14 +150,9 @@ def getRevisionLog(url, revision):
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE).stdout.readlines()
log = ""
pos = 0
for line in svn_log:
if (pos > 2):
log += line.replace('-','').replace('\r','')
else:
pos = pos + 1
return log
# Don't include the header lines and the trailing "---..." line and eliminate
# any '\r's.
return ''.join([l.replace('\r','') for l in svn_log[3:-1]])
def getSVNVersionInfo():
"""Extract version information from SVN"""
......@@ -528,7 +523,7 @@ def main(options, args):
out.write(action +" " + str(revision) + " - ")
out.write(getRevisionLog(url, revision))
if (author):
out.write("TBR=" + author)
out.write("\nTBR=" + author)
out.close()
change_cmd = 'change ' + str(revision) + " " + filename
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment