Mercurial > hg > easyhg
changeset 426:8530c31536a7
Minor text calculation fix
author | Chris Cannam |
---|---|
date | Thu, 23 Jun 2011 20:36:09 +0100 |
parents | ad106f5fe75f |
children | 8edf76b57bd9 |
files | easyhg.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/easyhg.py Thu Jun 23 10:58:32 2011 +0100 +++ b/easyhg.py Thu Jun 23 20:36:09 2011 +0100 @@ -57,8 +57,10 @@ if not self.interactive(): self.write(msg, ' ', default, "\n") return default + isusername = False if msg == _('user:'): msg = _('Username for remote repository:') + isusername = True d = QtGui.QInputDialog() d.setInputMode(QtGui.QInputDialog.TextInput) d.setTextEchoMode(QtGui.QLineEdit.Normal) @@ -69,7 +71,10 @@ ok = d.exec_() r = d.textValue() if not ok: - raise util.Abort(_('username entry cancelled')) + if isusername: + raise util.Abort(_('username entry cancelled')) + else: + raise util.Abort(_('information entry cancelled')) if not r: return default return r