Mercurial > public > mercurial-scm > hg
comparison mercurial/utils/stringutil.py @ 37247:2ed180117f76
stringutil: edit comment to reflect actual data type name
In development the data type used to hold an email/name pair
was called a "mailmaptup" since it was implemented as a
namedtuple. The implementation has since been changed to use
an @attr.s decorated class named mailmapping. This commit
changes a comment to reflect this change.
Differential Revision: https://phab.mercurial-scm.org/D3004
author | Connor Sheehan <sheehan@mozilla.com> |
---|---|
date | Sat, 31 Mar 2018 13:01:20 -0400 |
parents | 0e7550b0964c |
children | cc5a040fe150 |
comparison
equal
deleted
inserted
replaced
37246:0e7550b0964c | 37247:2ed180117f76 |
---|---|
298 # If the author field coming in isn't in the correct format, | 298 # If the author field coming in isn't in the correct format, |
299 # or the mailmap is empty just return the original author field | 299 # or the mailmap is empty just return the original author field |
300 if not isauthorwellformed(author) or not mailmap: | 300 if not isauthorwellformed(author) or not mailmap: |
301 return author | 301 return author |
302 | 302 |
303 # Turn the user name into a mailmaptup | 303 # Turn the user name into a mailmapping |
304 commit = mailmapping(name=person(author), email=email(author)) | 304 commit = mailmapping(name=person(author), email=email(author)) |
305 | 305 |
306 try: | 306 try: |
307 # Try and use both the commit email and name as the key | 307 # Try and use both the commit email and name as the key |
308 proper = mailmap[commit] | 308 proper = mailmap[commit] |