Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.5, 0.7.6, and 0.8

hgcmd: limit length of displayed command string

Fixes #119 (crashes caused by operations with thousands of files)

Changeset ba19c0fdb0e4

Parent 6844b5f3bcf1

by Steve Borho

Changes to one file · Browse files at ba19c0fdb0e4 Showing diff from parent 6844b5f3bcf1 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgcmd.py Stacked
 
19
20
21
 
 
 
22
23
24
 
51
52
53
54
 
55
56
57
 
19
20
21
22
23
24
25
26
27
 
54
55
56
 
57
58
59
60
@@ -19,6 +19,9 @@
 class CmdDialog(gtk.Dialog):   def __init__(self, cmdline, progressbar=True, width=520, height=400):   title = 'hg ' + ' '.join(cmdline[1:]) + if len(title) > 80: + title = toutf(title[:80] + '...') + title = toutf(title.replace('\n', ' '))   gtk.Dialog.__init__(self,   title=title,   flags=gtk.DIALOG_MODAL, @@ -51,7 +54,7 @@
  hbox = gtk.HBox()     self.status_text = gtk.Label() - self.status_text.set_text(toutf(" ".join(cmdline).replace("\n", " "))) + self.status_text.set_text(title)   self.status_text.set_alignment(0, 0.5)   self.status_text.set_ellipsize(pango.ELLIPSIZE_END)   hbox.pack_start(self.status_text, True, True, 3)