Skip to content

Commit

Permalink
This script will update a git repo from a bzr repo that it was conver…
Browse files Browse the repository at this point in the history
…ted from.
  • Loading branch information
davidswelt authored and David Reitter (Work) committed Apr 3, 2009
1 parent e4708be commit d95b2b3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions aquamacs/admin/VCS-transition/update-git-repo-from-bzr.sh
@@ -0,0 +1,22 @@
#!/bin/sh


cd ~/Repositories

cd notengoamigos.bzr/trunk
bzr pull
cd ../..


mv emacs.trunk.bzr.marks emacs.trunk.bzr.marks.bak
mv emacs.trunk.git.marks emacs.trunk.git.marks.bak
cd emacs.git
bzr fast-export -v --import-marks=../emacs.trunk.bzr.marks.bak --export-marks=../emacs.trunk.bzr.marks --git-branch=master --checkpoint=120000 ../notengoamigos.bzr/trunk >changes
git fast-import --import-marks=../emacs.trunk.git.marks.bak --export-marks=../emacs.trunk.git.marks --force <changes

cd ..
D=`date "+%Y%m%d%H%M%S"`
tar czf bak/$D.marks.tgz emacs.trunk.*.marks



0 comments on commit d95b2b3

Please sign in to comment.