Mercurial > hg > easyhg
diff easyhg.py @ 426:8530c31536a7
Minor text calculation fix
author | Chris Cannam |
---|---|
date | Thu, 23 Jun 2011 20:36:09 +0100 |
parents | 2d3f1e5d8638 |
children |
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