Patchwork [4,of,4] solaris: sed doesn't recognize a line without a newline

login
register
mail settings
Submitter Danek Duvall
Date Aug. 26, 2013, 5:28 p.m.
Message ID <d510a29d34d2abcf3d3d.1377538117@smelly>
Download mbox | patch
Permalink /patch/2265/
State Accepted
Headers show

Comments

Danek Duvall - Aug. 26, 2013, 5:28 p.m.
# HG changeset patch
# User Danek Duvall <danek.duvall@oracle.com>
# Date 1377299138 25200
# Node ID d510a29d34d2abcf3d3db149e53a605b083950fb
# Parent  7d2fe0113e5c21bc204616649256d1bb59d7d7f5
solaris: sed doesn't recognize a line without a newline
Augie Fackler - Aug. 26, 2013, 7:56 p.m.
On Mon, Aug 26, 2013 at 10:28:37AM -0700, Danek Duvall wrote:
> # HG changeset patch
> # User Danek Duvall <danek.duvall@oracle.com>
> # Date 1377299138 25200
> # Node ID d510a29d34d2abcf3d3db149e53a605b083950fb
> # Parent  7d2fe0113e5c21bc204616649256d1bb59d7d7f5
> solaris: sed doesn't recognize a line without a newline

Queueing 1,3,4, thanks.

>
> diff --git a/tests/test-parse-date.t b/tests/test-parse-date.t
> --- a/tests/test-parse-date.t
> +++ b/tests/test-parse-date.t
> @@ -242,7 +242,7 @@ Test issue 3764 (interpreting 'today' an
>    >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d")
>    >>> dates = open('dates', 'w')
>    >>> dates.write(today + '\n')
> -  >>> dates.write(yesterday)
> +  >>> dates.write(yesterday + '\n')
>    >>> dates.close()
>    $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code"
>    $ hg log -d today --template '{desc}\n'
>
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

Patch

diff --git a/tests/test-parse-date.t b/tests/test-parse-date.t
--- a/tests/test-parse-date.t
+++ b/tests/test-parse-date.t
@@ -242,7 +242,7 @@  Test issue 3764 (interpreting 'today' an
   >>> yesterday = (datetime.date.today() - datetime.timedelta(days=1)).strftime("%b %d")
   >>> dates = open('dates', 'w')
   >>> dates.write(today + '\n')
-  >>> dates.write(yesterday)
+  >>> dates.write(yesterday + '\n')
   >>> dates.close()
   $ hg ci -d "`sed -n '1p' dates`" -m "today is a good day to code"
   $ hg log -d today --template '{desc}\n'