Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

hgqt/run: fix broken layou of help text caused by util.wrap() change

This patch is essentialy a partial copy of Mercurial's d320e70442a5,
written by FUJIWARA Katsunori <foozy@lares.dti.ne.jp>.

Changeset 0ef3a1435b17

Parent 5da11365b8d9

by Yuya Nishihara

Changes to one file · Browse files at 0ef3a1435b17 Showing diff from parent 5da11365b8d9 Diff from another changeset...

 
571
572
573
574
 
 
 
575
576
577
 
638
639
640
641
 
 
 
 
 
642
643
644
 
571
572
573
 
574
575
576
577
578
579
 
640
641
642
 
643
644
645
646
647
648
649
650
@@ -571,7 +571,9 @@
  commands = cmds[f].replace("|",", ")   ui.write(" %s:\n %s\n"%(commands, h[f]))   else: - ui.write(' %-*s %s\n' % (m, f, util.wrap(h[f], m + 4))) + ui.write('%s\n' % (util.wrap(h[f], + initindent=' %-*s ' % (m, f), + hangindent=' ' * (m + 4))))     if not ui.quiet:   addglobalopts(True) @@ -638,7 +640,11 @@
  opts_len = max([len(line[0]) for line in opt_output if line[1]] or [0])   for first, second in opt_output:   if second: - ui.write(" %-*s %s\n" % (opts_len, first, second)) + initindent = ' %-*s ' % (opts_len, first) + hangindent = ' ' * (opts_len + 3) + ui.write('%s\n' % (util.wrap(second, + initindent=initindent, + hangindent=hangindent)))   else:   ui.write("%s\n" % first)