Skip to content

Commit 044b9b8

Browse files
committed
Refined the selection of commit log info lines.
- Legacy-Id: 13110
1 parent b80aff4 commit 044b9b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/mergeready

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ mergeinfo = cache[repo] if repo in cache else {}
177177

178178
merged_revs = {}
179179
write_cache = False
180+
loginfo_format = r'^r[0-9]+ \| [^@]+@[^@]+ \| \d\d\d\d-\d\d-\d\d '
180181
note("Getting svn:mergeinfo for current branch")
181182
for line in pipe('svn propget svn:mergeinfo .').splitlines():
182183
if opt_verbose:
@@ -192,7 +193,7 @@ for line in pipe('svn propget svn:mergeinfo .').splitlines():
192193
try:
193194
commit_log = pipe('svn log -v -r %s:%s %s%s' % (beg, end, repo, branch))
194195
for logline in commit_log.splitlines():
195-
if re.search('^r[0-9]+ ', logline):
196+
if re.search(loginfo_format, logline):
196197
rev, who, when = split_loginfo(logline)
197198
merged[rev] = branch[1:]
198199
write_cache = True
@@ -251,7 +252,7 @@ def get_ready_commits(repo, tree):
251252
note("Running '%s' ..." % cmd)
252253
commit_log = pipe(cmd)
253254
for line in commit_log.splitlines():
254-
if re.search('^r[0-9]+ \|', line):
255+
if re.search(loginfo_format, line):
255256
rev, who, when = split_loginfo(line)
256257
branch = None
257258
continue
@@ -335,7 +336,7 @@ for branch in branches:
335336
rev = None
336337
mod = False
337338
for line in commit_log.splitlines():
338-
if re.search('^r[0-9]+ ', line):
339+
if re.search(loginfo_format, line):
339340
rev, who, when = split_loginfo(line)
340341
elif re.search('^ [AMD]', line):
341342
if not ' (from ' in line and not mod:

0 commit comments

Comments
 (0)