test-convert-git
19 lines
| 356 B
| text/plain
|
TextLexer
/ tests / test-convert-git
Patrick Mezard
|
r5219 | #!/bin/sh | ||
"$TESTDIR/hghave" git || exit 80 | ||||
echo "[extensions]" >> $HGRCPATH | ||||
echo "convert=" >> $HGRCPATH | ||||
mkdir git-repo | ||||
cd git-repo | ||||
Thomas Arendsen Hein
|
r5231 | git init-db >/dev/null 2>/dev/null | ||
Patrick Mezard
|
r5219 | echo a > a | ||
git add a | ||||
Thomas Arendsen Hein
|
r5231 | git commit -m t1 >/dev/null 2>/dev/null || echo "git commit error" | ||
Patrick Mezard
|
r5219 | echo b >> a | ||
Thomas Arendsen Hein
|
r5231 | git commit -a -m t2 >/dev/null || echo "git commit error" | ||
Patrick Mezard
|
r5219 | cd .. | ||
hg convert git-repo | ||||