# HG changeset patch # User Patrick Mezard # Date 1188133633 -7200 # Node ID ceb6f242fb818460dd9d8e74c20d49dfb4b924bd # Parent 4fa0f2dff64384077c143b78809333fe208fb888 Test git repository conversion diff --git a/tests/test-convert-git b/tests/test-convert-git new file mode 100755 --- /dev/null +++ b/tests/test-convert-git @@ -0,0 +1,19 @@ +#!/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 + diff --git a/tests/test-convert-git.out b/tests/test-convert-git.out new file mode 100644 --- /dev/null +++ b/tests/test-convert-git.out @@ -0,0 +1,8 @@ +Initialized empty Git repository in .git/ +assuming destination git-repo-hg +initializing destination git-repo-hg repository +scanning source... +sorting... +converting... +1 t1 +0 t2