Patchwork [15,of,17] util: use single quotes in use warning

login
register
mail settings
Submitter timeless
Date Sept. 21, 2016, 12:19 a.m.
Message ID <91d602cb454e0f5a7133.1474417196@gcc2-power8.osuosl.org>
Download mbox | patch
Permalink /patch/16720/
State Accepted
Headers show

Comments

timeless - Sept. 21, 2016, 12:19 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1474415310 0
#      Tue Sep 20 23:48:30 2016 +0000
# Node ID 91d602cb454e0f5a7133e8302fa0cf1d86c7bfbe
# Parent  7deb4156b10a2dc83fc0278fb5f9fcb42eb17f25
# Available At https://bitbucket.org/timeless/mercurial-crew
#              hg pull https://bitbucket.org/timeless/mercurial-crew -r 91d602cb454e
util: use single quotes in use warning

Patch

diff -r 7deb4156b10a -r 91d602cb454e mercurial/util.py
--- a/mercurial/util.py	Tue Sep 20 23:48:19 2016 +0000
+++ b/mercurial/util.py	Tue Sep 20 23:48:30 2016 +0000
@@ -1953,7 +1953,7 @@ 
         except ValueError:
             raise Abort(_("invalid day spec: %s") % date[1:])
         if days < 0:
-            raise Abort(_('%s must be nonnegative (see "hg help dates")')
+            raise Abort(_("%s must be nonnegative (see 'hg help dates')")
                 % date[1:])
         when = makedate()[0] - days * 3600 * 24
         return lambda x: x >= when
diff -r 7deb4156b10a -r 91d602cb454e tests/test-parse-date.t
--- a/tests/test-parse-date.t	Tue Sep 20 23:48:19 2016 +0000
+++ b/tests/test-parse-date.t	Tue Sep 20 23:48:30 2016 +0000
@@ -102,7 +102,7 @@ 
 Negative range
 
   $ hg log -d "--2"
-  abort: -2 must be nonnegative (see "hg help dates")
+  abort: -2 must be nonnegative (see 'hg help dates')
   [255]
 
 Whitespace only