D3001: templatefuncs: remove redundant "or author" from mailmap return statement
sheehan (Connor Sheehan)
phabricator at mercurial-scm.org
Sun Apr 1 01:59:03 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG3685a79ea51b: templatefuncs: remove redundant "or author" from mailmap return statement (authored by sheehan, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3001?vs=7477&id=7481
REVISION DETAIL
https://phab.mercurial-scm.org/D3001
AFFECTED FILES
mercurial/templatefuncs.py
CHANGE DETAILS
diff --git a/mercurial/templatefuncs.py b/mercurial/templatefuncs.py
--- a/mercurial/templatefuncs.py
+++ b/mercurial/templatefuncs.py
@@ -184,7 +184,7 @@
data = repo.wvfs.tryread('.mailmap')
cache['mailmap'] = stringutil.parsemailmap(data)
- return stringutil.mapname(cache['mailmap'], author) or author
+ return stringutil.mapname(cache['mailmap'], author)
@templatefunc('pad(text, width[, fillchar=\' \'[, left=False]])',
argspec='text width fillchar left')
To: sheehan, #hg-reviewers, yuja
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list