diff -r f99d64e8a4e4 -r f0b6fbea00cf hgext/histedit.py --- a/hgext/histedit.py Thu Mar 22 21:19:31 2018 +0900 +++ b/hgext/histedit.py Thu Mar 22 21:56:20 2018 +0900 @@ -209,6 +209,9 @@ scmutil, util, ) +from mercurial.utils import ( + stringutil, +) pickle = util.pickle release = lock.release @@ -465,7 +468,7 @@ # (the 5 more are left for verb) maxlen = self.repo.ui.configint('histedit', 'linelen') maxlen = max(maxlen, 22) # avoid truncating hash - return util.ellipsis(line, maxlen) + return stringutil.ellipsis(line, maxlen) def tostate(self): """Print an action in format used by histedit state files