Patchwork D3004: stringutil: edit comment to reflect actual data type name

login
register
mail settings
Submitter phabricator
Date March 31, 2018, 8:37 p.m.
Message ID <differential-rev-PHID-DREV-fwvrphezvblw4rtx56fo-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30078/
State Superseded
Headers show

Comments

phabricator - March 31, 2018, 8:37 p.m.
sheehan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3004

AFFECTED FILES
  mercurial/utils/stringutil.py

CHANGE DETAILS




To: sheehan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/utils/stringutil.py b/mercurial/utils/stringutil.py
--- a/mercurial/utils/stringutil.py
+++ b/mercurial/utils/stringutil.py
@@ -300,7 +300,7 @@ 
     if not isauthorwellformed(author) or not mailmap:
         return author
 
-    # Turn the user name into a mailmaptup
+    # Turn the user name into a mailmapping
     commit = mailmapping(name=person(author), email=email(author))
 
     try: