tests/test-nested-repo
author Giorgos Keramidas <keramida@ceid.upatras.gr>
Sun, 13 Aug 2006 20:21:13 +0300
changeset 2876 0ffca0cb9f4b
parent 2136 3335564f2518
child 2965 890e285c52a1
permissions -rwxr-xr-x
Use cached hg-root-dir instead of rediscovering by a second call to (hg-root). We have the path we need already as the value of hg-root-dir.

#!/bin/sh

hg init a
cd a
hg init b
echo x > b/x
echo '# should print nothing'
hg st
echo '# should print ? b/x'
hg st b/x

hg add b/x

echo '# should print A b/x'
hg st
echo '# should forget b/x'
hg revert
echo '# should print nothing'
hg st b