mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
34 lines
698 B
Bash
Executable File
34 lines
698 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "[extensions]" >> $HGRCPATH
|
|
echo "remotenames=$(echo $(dirname $(dirname $0)))/remotenames.py" >> $HGRCPATH
|
|
|
|
hg init test
|
|
cd test
|
|
echo foo>foo
|
|
mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg
|
|
echo foo>foo.d/foo
|
|
echo bar>foo.d/bAr.hg.d/BaR
|
|
echo bar>foo.d/baR.d.hg/bAR
|
|
|
|
hg commit -A -m 1
|
|
hg serve -p $HGPORT -d --pid-file=../hg.pid
|
|
cd ..
|
|
cat hg.pid >> $DAEMON_PIDS
|
|
|
|
echo % clone
|
|
hg clone http://localhost:$HGPORT/ copy 2>&1 | \
|
|
sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/'
|
|
|
|
cd copy
|
|
echo
|
|
echo % add a commit to the clone
|
|
echo alpha > alpha
|
|
hg add alpha
|
|
hg ci -m 'add alpha'
|
|
|
|
echo
|
|
echo % verify that the branchheads are stored properly
|
|
hg pull | sed "s/$HGPORT//"
|
|
hg log --graph
|