Mercurial > hg
view tests/test-subrepo-paths @ 11816:e1359ad582f6
check-code: add exit status
so that we can use it in a shell command combination and/or in hg hooks.
author | Alecs King <alecsk@gmail.com> |
---|---|
date | Thu, 12 Aug 2010 16:42:41 +0800 |
parents | a8614c5a5e9a |
children |
line wrap: on
line source
#!/bin/sh hg init outer cd outer echo 'sub = http://example.net/libfoo' > .hgsub hg add .hgsub echo '% hg debugsub with no remapping' hg debugsub cat > .hg/hgrc <<EOF [subpaths] http://example.net = ssh://localhost EOF echo '% hg debugsub with remapping' hg debugsub echo '% test bad subpaths pattern' cat > .hg/hgrc <<EOF [subpaths] .* = \1 EOF hg debugsub 2>&1 | "$TESTDIR/filtertmp.py" exit 0