library-infinitepush.sh
32 lines
| 592 B
| application/x-sh
|
BashLexer
/ tests / library-infinitepush.sh
|
r37204 | scratchnodes() { | ||
for node in `find ../repo/.hg/scratchbranches/index/nodemap/* | sort`; do | ||||
echo ${node##*/} `cat $node` | ||||
done | ||||
} | ||||
scratchbookmarks() { | ||||
for bookmark in `find ../repo/.hg/scratchbranches/index/bookmarkmap/* -type f | sort`; do | ||||
echo "${bookmark##*/bookmarkmap/} `cat $bookmark`" | ||||
done | ||||
} | ||||
setupcommon() { | ||||
cat >> $HGRCPATH << EOF | ||||
[extensions] | ||||
infinitepush= | ||||
[ui] | ||||
|
r47858 | ssh = "$PYTHON" "$TESTDIR/dummyssh" | ||
|
r37204 | [infinitepush] | ||
branchpattern=re:scratch/.* | ||||
EOF | ||||
} | ||||
setupserver() { | ||||
cat >> .hg/hgrc << EOF | ||||
[infinitepush] | ||||
server=yes | ||||
indextype=disk | ||||
storetype=disk | ||||
reponame=babar | ||||
EOF | ||||
} | ||||