[PATCH 16 of 21] lowercase prompts

Martin Geisler mg at daimi.au.dk
Sat Jan 3 10:40:14 CST 2009


# HG changeset patch
# User Martin Geisler <mg at daimi.au.dk>
# Date 1230999321 -3600
# Node ID 5ace95a93b96425ef1760fff81c686d46a6ac9ba
# Parent  2682959209b97ac52dd384f68ec1e560ade9df0a
lowercase prompts

The prompts are interactive and not meant for scripts.

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -101,7 +101,7 @@
     if summary:
         ui.write(summary, '\n')
         ui.write(s, '\n')
-    ans = prompt(ui, _('Does the diffstat above look okay? '), 'y')
+    ans = prompt(ui, _('does the diffstat above look okay? '), 'y')
     if not ans.lower().startswith('y'):
         raise util.Abort(_('diffstat rejected'))
     return s
diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -340,7 +340,7 @@
         if user is None:
             user = os.environ.get("EMAIL")
         if user is None and self.configbool("ui", "askusername"):
-            user = self.prompt(_("Enter a commit username:"), default=None)
+            user = self.prompt(_("enter a commit username:"), default=None)
         if user is None:
             try:
                 user = '%s@%s' % (util.getuser(), socket.getfqdn())


More information about the Mercurial-devel mailing list