⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 175991 in webkit


Ignore:
Timestamp:
Nov 11, 2014, 4:46:41 PM (12 years ago)
Author:
ddkilzer@apple.com
Message:

webkit-patch --suggest-reviewers is broken with newer versions of git
<http://webkit.org/b/138627>

Reviewed by Michael Saboff with feedback from Daniel Bates.

  • Scripts/webkitpy/common/checkout/scm/git.py:

(Git._changes_files_for_commit): Strip blank lines instead of
assuming there is always a blank line at the beginning of the
list.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r175982 r175991  
     12014-11-11  David Kilzer  <ddkilzer@apple.com>
     2
     3        webkit-patch --suggest-reviewers is broken with newer versions of git
     4        <http://webkit.org/b/138627>
     5
     6        Reviewed by Michael Saboff with feedback from Daniel Bates.
     7
     8        * Scripts/webkitpy/common/checkout/scm/git.py:
     9        (Git._changes_files_for_commit): Strip blank lines instead of
     10        assuming there is always a blank line at the beginning of the
     11        list.
     12
    1132014-11-11  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/common/checkout/scm/git.py

    r175717 r175991  
    224224
    225225    def _changes_files_for_commit(self, git_commit):
    226         # --pretty="format:" makes git show not print the commit log header,
    227         changed_files = self._run_git(["show", "--pretty=format:", "--name-only", git_commit]).splitlines()
    228         # instead it just prints a blank line at the top, so we skip the blank line:
    229         return changed_files[1:]
     226        # --pretty="format:" makes git show not print the commit log header.
     227        changed_files = self._run_git(["show", "--pretty=format:", "--name-only", git_commit])
     228        # Strip blank lines which could appear at the top on older versions of git.
     229        return changed_files.lstrip().splitlines()
    230230
    231231    def changed_files_for_revision(self, revision):
Note: See TracChangeset for help on using the changeset viewer.