Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This script will update a git repo from a bzr repo that it was conver…
…ted from.
- Loading branch information
1 parent
e4708be
commit d95b2b3
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
||
|