Skip to content

Commit

Permalink
Cherry-pick 275866@main (cf72395). rdar://124287051
Browse files Browse the repository at this point in the history
    [git-webkit revert] Add tabs to separate reverted changes in commit message
    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

Canonical link: https://commits.webkit.org/272448.729@safari-7618-branch
  • Loading branch information
briannafan authored and JonWBedard committed Mar 14, 2024
1 parent d3860ca commit ba29e4a
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 ba29e4a

Please sign in to comment.