tests/test-paths
author Dirkjan Ochtman <dirkjan@ochtman.nl>
Mon, 14 Apr 2008 14:34:38 +0200
changeset 6548 962eb403165b
parent 5951 92eb0a019bf2
permissions -rwxr-xr-x
replace usage of os.popen() with util.popen() To make this possible, I added a mode parameter to both implementations of util.popen(), defaulting to 'r' (as it does in the Python stdlib).

#!/bin/sh
hg init a
hg clone a b
cd a
echo '[paths]' >> .hg/hgrc
echo 'dupe = ../b' >> .hg/hgrc
hg in dupe | fgrep '../'
cd ..
hg -R a in dupe | fgrep '../'
true