Mercurial > public > mercurial-scm > hg-stable
diff hgext/fastannotate/context.py @ 39413:2df3271ef139
fastannotate: use stringutil.pprint() to dump diffopts to be hashed
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 01 Sep 2018 10:40:48 +0900 |
parents | 1099d9bbdf9a |
children | ce4c29705983 |
line wrap: on
line diff
--- a/hgext/fastannotate/context.py Sat Sep 01 10:23:13 2018 +0900 +++ b/hgext/fastannotate/context.py Sat Sep 01 10:40:48 2018 +0900 @@ -23,6 +23,9 @@ scmutil, util, ) +from mercurial.utils import ( + stringutil, +) from . import ( error as faerror, @@ -131,7 +134,7 @@ .replace('.lock/', '.lock.hg/')) def hashdiffopts(diffopts): - diffoptstr = str(sorted( + diffoptstr = stringutil.pprint(sorted( (k, getattr(diffopts, k)) for k in mdiff.diffopts.defaults ))