hgext/fastannotate/context.py
changeset 39386 2df3271ef139
parent 39380 1099d9bbdf9a
child 39728 ce4c29705983
--- 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
     ))