[PATCH] test-mq-qnew: handle Mac OS X error strings
Adrian Buehlmann
adrian at cadifra.com
Wed Nov 10 13:02:17 UTC 2010
On 10.11.2010 13:57, Dan Villiom Podlaski Christiansen wrote:
> # HG changeset patch
> # User Dan Villiom Podlaski Christiansen <danchr at gmail.com>
> # Date 1289393303 -3600
> # Node ID 0cdade0d0e98a7ad39c827d1799dc0614bc3f119
> # Parent 01dde43bcc02f25cf8f26eae5388563b5c78153b
> test-mq-qnew: handle Mac OS X error strings.
>
> On Mac OS X, opening a file called '42/' results in ENOENT and not
> EISDIR if the directory doesn't exist.
>
> diff --git a/tests/test-mq-qnew.t b/tests/test-mq-qnew.t
> --- a/tests/test-mq-qnew.t
> +++ b/tests/test-mq-qnew.t
> @@ -107,7 +107,7 @@ plain headers
> abort: "foo#bar" cannot be used as the name of a patch
> abort: "foo:bar" cannot be used as the name of a patch
> % qnew with name containing slash
> - abort: cannot write patch "foo/": Is a directory
> + abort: cannot write patch "foo/": (Is a|No such file or) directory (re)
> abort: "foo" already exists as a directory
> foo/bar.patch
> popping foo/bar.patch
> @@ -172,7 +172,7 @@ hg headers
> abort: "foo#bar" cannot be used as the name of a patch
> abort: "foo:bar" cannot be used as the name of a patch
> % qnew with name containing slash
> - abort: cannot write patch "foo/": Is a directory
> + abort: cannot write patch "foo/": (Is a|No such file or) directory (re)
> abort: "foo" already exists as a directory
> foo/bar.patch
> popping foo/bar.patch
If this patch is taken, it should go into stable.
More information about the Mercurial-devel
mailing list