Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

hgcmd: do not show URLs when testing aliases

Refs #353

Changeset d946ce839eb3

Parent aa627f38b978

by Steve Borho

Changes to 2 files · Browse files at d946ce839eb3 Showing diff from parent aa627f38b978 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgcmd.py Stacked
 
17
18
19
20
 
 
 
 
 
 
21
22
23
 
17
18
19
 
20
21
22
23
24
25
26
27
28
@@ -17,7 +17,12 @@
   class CmdDialog(gtk.Dialog):   def __init__(self, cmdline, progressbar=True, width=520, height=400): - title = 'hg ' + ' '.join(cmdline[1:]) + if progressbar: + title = 'hg ' + ' '.join(cmdline[1:]) + else: + # use short title if progressbar is not in use. The + # calling code may not want to show the complete command + title = 'hg ' + ' '.join(cmdline[1:2])   if len(title) > 80:   title = title[:80] + '...'   title = hglib.toutf(title.replace('\n', ' '))
 
654
655
656
657
 
 
658
659
660
 
654
655
656
 
657
658
659
660
661
@@ -654,7 +654,8 @@
  if testpath[0] == '~':   testpath = os.path.expanduser(testpath)   cmdline = ['hg', 'incoming', '--verbose', testpath] - dlg = hgcmd.CmdDialog(cmdline) + # Do not use progressbar, as it may show plaintext passwords + dlg = hgcmd.CmdDialog(cmdline, progressbar=False)   dlg.run()   dlg.hide()