-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: west_commands: fix and optimize ncs-compare heuristic
The heuristics currently used have two problems: problem 1. the comments falsely claim we match commits by author problem 2. heuristic 2 is no longer necessary now that we do not truncate downstream commit titles to make room for sauce tags A corollary of problem 1 is that they're also unnecessarily slow: we could just compare each downstream commit against upstream commits with the same author, but instead we waste time with unnecessary comparisons against (potentially thousands of) commits with different authors. Fix both issues, using the email field in a pygit2.Signature object as the author identifier. Emails will have normalized for any diacritic marks that may occur in people's names. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
- Loading branch information
1 parent
e80d285
commit f428958
Showing
1 changed file
with
27 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters