# HG changeset patch # User Chris Cannam # Date 1308857769 -3600 # Node ID 8530c31536a7b9cc3d5f62bce19df7255d6d4e8d # Parent ad106f5fe75f09d72ae7982a692c946a44c6871c Minor text calculation fix diff -r ad106f5fe75f -r 8530c31536a7 easyhg.py --- 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