sapling/tests/test-convert-git

20 lines
356 B
Plaintext
Raw Normal View History

2007-08-26 17:07:13 +04:00
#!/bin/sh
"$TESTDIR/hghave" git || exit 80
echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH
mkdir git-repo
cd git-repo
git init-db >/dev/null 2>/dev/null
2007-08-26 17:07:13 +04:00
echo a > a
git add a
git commit -m t1 >/dev/null 2>/dev/null || echo "git commit error"
2007-08-26 17:07:13 +04:00
echo b >> a
git commit -a -m t2 >/dev/null || echo "git commit error"
2007-08-26 17:07:13 +04:00
cd ..
hg convert git-repo