Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 274747@main (273218f). rdar://121400016
[git-webkit] Prefer hash over identifier in relationships https://bugs.webkit.org/show_bug.cgi?id=267889 rdar://121400016 Reviewed by Dewei Zhu. Users can create identifiers from branches which aren't linear, so it's possible that a branch identifier refers more than one commit in the history of the repository. Since hashes are more stable, if a relationship uses both, prefer the hash. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/trace.py: (Relationship.parse): Prefer hash commit reference when parsing relationships, even if the hash reference is the secondary reference. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/trace_unittest.py: (TestRelationship.test_cherry_pick): (TestRelationship.test_revert): (TestRelationship.test_follow_up): (TestRelationship.test_double_revert): Canonical link: https://commits.webkit.org/274747@main Canonical link: https://commits.webkit.org/272448.573@safari-7618-branch
- Loading branch information