# HG changeset patch # User Nicolas Dumazet # Date 2010-08-30 04:29:44 # Node ID 6f58430dfdd03a658c72fcf90b70519b75c2b66e # Parent 256d447a0fe3af525c7cadd2ade368e01160ec2e util: get rid of extra trailing whitespace in parsedate abort message diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1069,7 +1069,7 @@ def parsedate(date, formats=None, defaul 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 diff --git a/tests/test-commit.t b/tests/test-commit.t --- a/tests/test-commit.t +++ b/tests/test-commit.t @@ -11,9 +11,9 @@ commit date test $ 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 diff --git a/tests/test-revset.t b/tests/test-revset.t --- a/tests/test-revset.t +++ b/tests/test-revset.t @@ -150,7 +150,7 @@ quoting needed $ 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::'