hgext/histedit.py
changeset 37084 f0b6fbea00cf
parent 37016 17692fefc8f2
child 37106 3d3cff1f6bde
--- 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