view mercurial/utils/__init__.py @ 37246:0e7550b0964c

stringutil: improve check for failed mailmap line parsing The existing check for a bad mailmap file entry fails with inputs like b'>@<'. This commit adds a function to check if a sufficient amount of information has been parsed from a mailmap file entry. At minimum, one email must be found (assumed to be the commit email). If email is not empty and no names are found, then there must be two emails. If there are at least one email and name, the mapping is valid. Differential Revision: https://phab.mercurial-scm.org/D3003
author Connor Sheehan <sheehan@mozilla.com>
date Sat, 31 Mar 2018 11:36:55 -0400
parents c6061cadb400
children
line wrap: on
line source