mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
20 lines
356 B
Bash
Executable File
20 lines
356 B
Bash
Executable File
#!/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
|
|
echo a > a
|
|
git add a
|
|
git commit -m t1 >/dev/null 2>/dev/null || echo "git commit error"
|
|
echo b >> a
|
|
git commit -a -m t2 >/dev/null || echo "git commit error"
|
|
cd ..
|
|
|
|
hg convert git-repo
|
|
|