X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/git-migration.git/blobdiff_plain/0226af193c94476ff2029e0d44103bb4d216a331..02b3a3a43af26cc2665d4c464733c05d63c751c8:/git-migrate-fast.sh diff --git a/git-migrate-fast.sh b/git-migrate-fast.sh index 86dbebe..1f977bd 100755 --- a/git-migrate-fast.sh +++ b/git-migrate-fast.sh @@ -13,12 +13,13 @@ sed -n 's/^create repository // p' ../rules | while read repo; do mkdir -p "$repo" && GIT_DIR="$repo" git init --bare done -svn-all-fast-export --identity-map <(sed 's/= //' ../authors) ../rules "$SVN" +svn-all-fast-export --identity-map ../authors ../rules "$SVN" sed -n 's/^create repository // p' ../rules | while read repo; do - ! [ -e "$repo/refs/heads/tags" ] || \ - cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \ - rm -rf "$repo/refs/heads/tags" + if [ -e "$repo/refs/heads/tags" ]; then + cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" + rm -rf "$repo/refs/heads/tags" + fi done pushd packages/invirt-remote.git @@ -39,6 +40,13 @@ git filter-branch --tag-name-filter cat -- ^sipb-xen-dns/1~11 ^dns --all rm -rf info/grafts refs/original refs/heads/dns popd +pushd packages/invirt-database-server.git +git fetch ../invirt-database.git refs/tags/0.0.1:refs/heads/tmp +echo $(git rev-parse 0.0.1 refs/heads/tmp^) >> info/grafts +git filter-branch --tag-name-filter cat -- ^refs/heads/tmp --all +rm -rf info/grafts refs/original refs/heads/tmp +popd + pushd packages/libyaml.git git fetch git://andersk.mit.edu/libyaml.git refs/tags/upstream/0.1.1:refs/tags/upstream/0.1.1 refs/tags/debian/0.1.1-1:refs/tags/debian/0.1.1-1 git branch upstream upstream/0.1.1 @@ -47,5 +55,11 @@ git filter-branch --tag-name-filter cat -- ^debian/0.1.1-1 --all rm -rf info/grafts refs/original popd +pushd packages/python-routefs.git +git fetch -t git://github.com/ebroder/python-routefs.git +git branch -f upstream 1.0.1 +git branch -f master 1.0.1-1 +popd + echo echo 'The Git migration was successful.'