mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 10:41:31 +00:00
Introduct git-auto-svn
This tool can automatically set up the necessary git-svn metadata for our repos that live in SVN but are mirrored to Chrome. R=iannucci@chromium.org, tandrii@chromium.org BUG=418973 Review URL: https://codereview.chromium.org/611253003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@292241 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -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('-') ])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user