tests/test-convert-git
author Brendan Cully <brendan@kublai.com>
Wed, 29 Aug 2007 16:15:23 -0700
changeset 5230 bfd73b567b3d
parent 5219 ceb6f242fb81
child 5231 5c2ca6d6ab21
permissions -rwxr-xr-x
When reverting a file which was renamed, also revert the old name

#!/bin/sh

"$TESTDIR/hghave" git || exit 80

echo "[extensions]" >> $HGRCPATH
echo "convert=" >> $HGRCPATH

mkdir git-repo
cd git-repo
git init
echo a > a
git add a
git commit -m t1 > /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