Fix filtering regex for superseded commits
This also fixes a failing functional test Change-Id: I50a8e197e3b74768b9aaf36bf5e8e7fb58fccbbf
This commit is contained in:
@@ -469,7 +469,7 @@ class SupersededCommitFilter(LogDedentMixin, GitMixin, CommitFilter):
|
||||
|
||||
# search for all the change-ids in matches (egrep regex)
|
||||
commits_grep_re = '^Change-Id:\\s*\(%s\)\\s*$' % \
|
||||
'|'.join(superseding_change_ids)
|
||||
'\|'.join(superseding_change_ids)
|
||||
|
||||
# retrieve all matching commits because we need to check
|
||||
# each match for whether the changeId is actually in
|
||||
@@ -494,7 +494,7 @@ class SupersededCommitFilter(LogDedentMixin, GitMixin, CommitFilter):
|
||||
found:
|
||||
%s
|
||||
""", commit.hexsha[:7], commit.message.splitlines()[0],
|
||||
'\n'.join(superseding_change_ids))
|
||||
'\n '.join(superseding_change_ids))
|
||||
yield commit
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user