util: get rid of extra trailing whitespace in parsedate abort message
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Mon, 30 Aug 2010 13:29:44 +0900
changeset 12105 6f58430dfdd0
parent 12104 256d447a0fe3
child 12106 969176bec217
util: get rid of extra trailing whitespace in parsedate abort message
mercurial/util.py
tests/test-bisect.t
tests/test-churn.t
tests/test-commit.t
tests/test-inherit-mode.t
tests/test-remove-new.t
tests/test-remove.t
tests/test-rename.t
tests/test-revset.t
tests/test-strict.t
--- a/mercurial/util.py	Mon Aug 30 13:23:32 2010 +0900
+++ b/mercurial/util.py	Mon Aug 30 13:29:44 2010 +0900
@@ -1069,7 +1069,7 @@
             else:
                 break
         else:
-            raise Abort(_('invalid date: %r ') % date)
+            raise Abort(_('invalid date: %r') % date)
     # validate explicit (probably user-specified) date and
     # time zone offset. values must fit in signed 32 bits for
     # current 32-bit linux runtimes. timezones go from UTC-12
--- a/tests/test-commit.t	Mon Aug 30 13:23:32 2010 +0900
+++ b/tests/test-commit.t	Mon Aug 30 13:29:44 2010 +0900
@@ -11,9 +11,9 @@
   $ hg commit -d '1 4444444' -m commit-3
   abort: impossible time zone offset: 4444444
   $ hg commit -d '1	15.1' -m commit-4
-  abort: invalid date: '1\t15.1' 
+  abort: invalid date: '1\t15.1'
   $ hg commit -d 'foo bar' -m commit-5
-  abort: invalid date: 'foo bar' 
+  abort: invalid date: 'foo bar'
   $ hg commit -d ' 1 4444' -m commit-6
   $ hg commit -d '111111111111 0' -m commit-7
   abort: date exceeds 32 bits: 111111111111
--- a/tests/test-revset.t	Mon Aug 30 13:23:32 2010 +0900
+++ b/tests/test-revset.t	Mon Aug 30 13:29:44 2010 +0900
@@ -150,7 +150,7 @@
   $ log 'date('
   hg: parse error at 5: not a prefix: end
   $ log 'date(tip)'
-  abort: invalid date: 'tip' 
+  abort: invalid date: 'tip'
   $ log '"date"'
   abort: unknown revision 'date'!
   $ log 'date(2005) and 1::'