--- 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::'