changeset 12105:6f58430dfdd0

util: get rid of extra trailing whitespace in parsedate abort message
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 30 Aug 2010 13:29:44 +0900
parents 256d447a0fe3
children 969176bec217
files 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
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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::'