Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: git_footers.py

Issue 611253003: Introduct git-auto-svn (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Better docs Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: git_footers.py
diff --git a/git_footers.py b/git_footers.py
index 6e8136b35b0f89a2abf9da85b50ed044e5d0664a..fe72e18a9f832da4d0b5a774bfd6e1d5c2fee243 100755
--- a/git_footers.py
+++ b/git_footers.py
@@ -11,10 +11,12 @@ from collections import defaultdict
import git_common as git
+
FOOTER_PATTERN = re.compile(r'^\s*([\w-]+): (.*)$')
CHROME_COMMIT_POSITION_PATTERN = re.compile(r'^([\w/-]+)@{#(\d+)}$')
GIT_SVN_ID_PATTERN = re.compile('^([^\s@]+)@(\d+)')
+
def normalize_name(header):
return '-'.join([ word.title() for word in header.strip().split('-') ])

Powered by Google App Engine
This is Rietveld 408576698