mercurial/commands.py
changeset 3767 1861fa38a6a7
parent 3736 ad3d5b4367cb
child 3772 73860ffbe798
--- a/mercurial/commands.py	Sat Dec 02 22:16:00 2006 +0100
+++ b/mercurial/commands.py	Sat Dec 02 22:35:17 2006 +0100
@@ -3031,8 +3031,7 @@
         elif not inst[1]:
             u.warn(_(" empty string\n"))
         else:
-            u.warn("\n%r%s\n" %
-                    (inst[1][:400], len(inst[1]) > 400 and '...' or ''))
+            u.warn("\n%r\n" % util.ellipsis(inst[1]))
     except util.Abort, inst:
         u.warn(_("abort: %s\n") % inst)
     except TypeError, inst: