Changeset 270004 in webkit


Ignore:
Timestamp:
Nov 18, 2020 5:42:45 PM (3 years ago)
Author:
Jonathan Bedard
Message:

[webitscmpy] Branch point incorrect for Git checkouts
https://bugs.webkit.org/show_bug.cgi?id=219132
<rdar://problem/71561569>

Reviewed by Dewei Zhu.

  • Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:

(Git.commit): Banca-point is the distance from the primordial commit minus the distance from
the default branch.

  • Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r270003 r270004  
     12020-11-18  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webitscmpy] Branch point incorrect for Git checkouts
     4        https://bugs.webkit.org/show_bug.cgi?id=219132
     5        <rdar://problem/71561569>
     6
     7        Reviewed by Dewei Zhu.
     8
     9        * Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py:
     10        (Git.commit): Banca-point is the distance from the primordial commit minus the distance from
     11        the default branch.
     12        * Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py:
     13
    1142020-11-18  Alexey Proskuryakov  <ap@apple.com>
    215
  • trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py

    r269891 r270004  
    4747    )
    4848
    49 version = Version(0, 3, 1)
     49version = Version(0, 3, 2)
    5050
    5151AutoInstall.register(Package('dateutil', Version(2, 8, 1), pypi_name='python-dateutil'))
  • trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py

    r269401 r270004  
    244244        if not identifier:
    245245            identifier = self._commit_count(hash if branch == default_branch else '{}..{}'.format(default_branch, hash))
    246         branch_point = None if branch == default_branch else self._commit_count(hash)
     246        branch_point = None if branch == default_branch else self._commit_count(hash) - identifier
    247247        if branch_point and parsed_branch_point and branch_point != parsed_branch_point:
    248248            raise ValueError("Provided 'branch_point' does not match branch point of specified branch")
  • trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/local/git.py

    r269401 r270004  
    352352        if '..' in something or not match.branch_point:
    353353            return match.identifier
    354         return match.branch_point
     354        return match.branch_point + match.identifier
    355355
    356356    def branches_on(self, hash):
Note: See TracChangeset for help on using the changeset viewer.