mercurial/utils/stringutil.py
changeset 37247 2ed180117f76
parent 37246 0e7550b0964c
child 37290 cc5a040fe150
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]