Changeset 2578 for trunk/scripts/git-migration
- Timestamp:
- Dec 5, 2009, 3:49:51 PM (15 years ago)
- Location:
- trunk/scripts/git-migration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate-fast.sh
r2577 r2578 19 19 20 20 sed -n 's/^create repository // p' ../rules | while read repo; do 21 mkdir -p "$repo" && GIT_DIR="$repo" git init --bare 21 mkdir -p "$repo" && GIT_DIR="$repo" git init --bare && GIT_DIR="$repo" git symbolic-ref HEAD refs/heads/prod 22 22 done 23 23 … … 61 61 git fetch -t git://github.com/ebroder/python-routefs.git 62 62 git branch -f upstream 1.0.1 63 git branch -f master1.0.1-163 git branch -f prod 1.0.1-1 64 64 popd 65 66 for r in $(ls packages); do 67 pushd "packages/$r" 68 git branch dev prod 69 popd 70 done 65 71 66 72 mkdir packages.git 67 73 pushd packages.git 68 74 git init --bare 75 git symbolic-ref HEAD refs/heads/prod 69 76 ( 70 77 echo 'commit refs/heads/prod' … … 76 83 for r in $(ls ../packages); do 77 84 pushd "../packages/$r" &>/dev/null 78 commit="$(git rev-parse refs/heads/ master)"85 commit="$(git rev-parse refs/heads/prod)" 79 86 popd &>/dev/null 80 87 -
trunk/scripts/git-migration/rules.mako
r2471 r2578 27 27 if 'merge' in packages[package]: 28 28 return get_branch(packages[package]['merge']) 29 return ' master'29 return 'prod' 30 30 31 31 def get_tag_prefix(package):
Note: See TracChangeset
for help on using the changeset viewer.