hgext/histedit.py
changeset 21858 50fd3a36d166
parent 21689 503bb3af70fe
child 21950 af44c7a1e55e
--- a/hgext/histedit.py	Sun Jul 06 02:56:41 2014 +0900
+++ b/hgext/histedit.py	Sun Jul 06 02:56:41 2014 +0900
@@ -760,7 +760,8 @@
     if c.description():
         summary = c.description().splitlines()[0]
     line = 'pick %s %d %s' % (c, c.rev(), summary)
-    return line[:80]  # trim to 80 chars so it's not stupidly wide in my editor
+    # trim to 80 columns so it's not stupidly wide in my editor
+    return util.ellipsis(line, 80)
 
 def verifyrules(rules, repo, ctxs):
     """Verify that there exists exactly one edit rule per given changeset.