Changeset d946ce839eb3…
Parent aa627f38b978…
by
Changes to 2 files · Browse files at d946ce839eb3 Showing diff from parent aa627f38b978 Diff from another changeset...
@@ -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,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()
|
Loading...