tests/test-paths
author Matt Mackall <mpm@selenic.com>
Fri, 27 Jun 2008 14:53:30 -0500
changeset 6761 cb981fc955fb
parent 5951 92eb0a019bf2
permissions -rwxr-xr-x
remove: work directly off status This allows us to use a single directory walk and to trivially ignore unknown files. The resulting code is also easier to follow.

#!/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