solaris test-alias failure because of $PWD
Mads Kiilerich
mads at kiilerich.com
Sat May 1 12:01:58 CDT 2010
test-alias fails on Solaris:
--- /home/mads/hg/tests/test-alias.out
+++ /home/mads/hg/tests/test-alias.err
@@ -31,15 +31,4 @@
extra: branch=default
% path expanding
-# HG changeset patch
-# User test
-# Date 0 0
-# Node ID e63c23eaa88ae77967edcf4ea194d31167c478b0
-# Parent 0000000000000000000000000000000000000000
-foo
-
-diff -r 000000000000 -r e63c23eaa88a foo
---- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/foo Thu Jan 01 00:00:00 1970 +0000
-@@ -0,0 +1,1 @@
-+foo
+cat: cannot open 0.diff
That is caused by
changeset: 10793:16df09a54113
branch: stable
parent: 10791:48c8eb9de0c8
user: Alexander Solovyov <piranha at piranha.org.ua>
date: Sat Mar 27 13:39:45 2010 +0200
files: mercurial/dispatch.py tests/test-alias tests/test-alias.out
description:
expand paths in aliases
...
--- a/tests/test-alias Wed Mar 31 12:07:13 2010 +0200
+++ b/tests/test-alias Sat Mar 27 13:39:45 2010 +0200
@@ -13,6 +13,7 @@
shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
dln = lognull --debug
nousage = rollback
+put = export -r 0 -o "\$PWD/%R.diff"
[defaults]
mylog = -q
@@ -59,3 +60,7 @@
echo '% properly recursive'
hg dln
+
+echo '% path expanding'
+hg put
+cat 0.diff
http://mercurial.selenic.com/wiki/WritingTests says
don't use $PWD; use `pwd` instead.
One reason for that is that it doesn't work on solaris.
/Mads
More information about the Mercurial-devel
mailing list