Skip to content

Commit

Permalink
[git-webkit revert] Add tabs to separate reverted changes in commit m…
Browse files Browse the repository at this point in the history
…essage

https://bugs.webkit.org/show_bug.cgi?id=270706
rdar://problem/124287051

Reviewed by Ryan Haddad.

Adds indentation for the reverted changeset for better readability.

* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/revert.py:
(Revert.create_revert_commit_msg):

Canonical link: https://commits.webkit.org/275866@main
  • Loading branch information
briannafan committed Mar 9, 2024
1 parent 3aba390 commit cf72395
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ def create_revert_commit_msg(cls, args, commit_objects, **kwargs):
for line in commit.message.splitlines():
if not commit_title:
commit_title = line
bug_urls = [i.link for i in commit.issues]
bug_urls = [' {}'.format(i.link) for i in commit.issues]

reverted_changeset += '\n{}\n'.format(commit_title)
reverted_changeset += '\n {}\n'.format(commit_title)
reverted_changeset += '\n'.join(bug_urls)
if commit.identifier and commit.branch:
commit_identifiers.append('{}@{}'.format(commit.identifier, commit.branch))
reverted_changeset += '\nhttps://commits.webkit.org/{}@{}\n'.format(commit.identifier, commit.branch)
reverted_changeset += '\n https://commits.webkit.org/{}@{}\n'.format(commit.identifier, commit.branch)
else:
sys.stderr.write('Could not find "{}"'.format(', '.join(args.commit_id)) + '\n')
return None, None
Expand Down

0 comments on commit cf72395

Please sign in to comment.