Changeset 2356 for trunk/scripts
- Timestamp:
- Jun 13, 2009, 6:32:51 PM (16 years ago)
- Location:
- trunk/scripts/git-migration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate-fast.sh
r2353 r2356 23 23 svn-all-fast-export --identity-map ../authors ../rules "$SVN" 24 24 25 sed -n 's/^create repository // p' ../rules | while read repo; do 26 if [ -e "$repo/refs/heads/tags" ]; then 27 cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" 28 rm -rf "$repo/refs/heads/tags" 29 fi 30 done 25 pushd packages/invirt-dev.git 26 GIT_COMMITTER_NAME='Eric Price' GIT_COMMITTER_EMAIL='ecprice@mit.edu' GIT_COMMITTER_DATE='1206829393 -0400' \ 27 git tag -a sipb-xen-dev/13 sipb-xen-dev/14~2 -F - <<EOF 28 Tag 13 of sipb-xen-dev 31 29 32 pushd packages/invirt-dev.git 33 git tag sipb-xen-dev/13 sipb-xen-dev/14~2 30 svn path=/package_tags/sipb-xen-dev/13/; revision=316 31 EOF 34 32 popd 35 33 36 34 pushd packages/invirt-remote.git 37 echo $(git rev-parse 0.2.0 invirt-remote-server invirt-remote-host) >> info/grafts35 echo $(git rev-parse 0.2.0^0 invirt-remote-server invirt-remote-host) >> info/grafts 38 36 git filter-branch --tag-name-filter cat -- ^invirt-remote-server ^invirt-remote-host --all 39 37 rm -rf info/grafts refs/original refs/heads/invirt-remote-server refs/heads/invirt-remote-host … … 41 39 42 40 pushd packages/invirt-console.git 43 echo $(git rev-parse 0.2.0 0.2.0^ invirt-console-host) >> info/grafts41 echo $(git rev-parse 0.2.0^0 0.2.0^ invirt-console-host) >> info/grafts 44 42 git filter-branch --tag-name-filter cat -- ^0.2.0^ ^invirt-console-host --all 45 43 rm -rf info/grafts refs/original refs/heads/invirt-console-host … … 53 51 54 52 pushd packages/invirt-database.git 55 echo $(git rev-parse invirt-database-server/0.0.1 0.0.1^) >> info/grafts56 echo $(git rev-parse 0.2.0 0.2.0^ invirt-database-server) >> info/grafts53 echo $(git rev-parse invirt-database-server/0.0.1^0 0.0.1^) >> info/grafts 54 echo $(git rev-parse 0.2.0^0 0.2.0^ invirt-database-server) >> info/grafts 57 55 git filter-branch --tag-name-filter cat -- ^0.2.0^ --all 58 56 rm -rf info/grafts refs/original refs/heads/invirt-database-server -
trunk/scripts/git-migration/rules.mako
r2310 r2356 67 67 match /package_tags/${package}/([^/~]+)/${package}/ 68 68 repository ${get_repo(package)} 69 branch tags/${get_tag_prefix(package)}\1 69 branch refs/tags/${get_tag_prefix(package)}\1 70 annotated true 70 71 max revision ${packages[package]['undouble'][0] - 1} 71 72 end match … … 95 96 match /package_tags/${package}/([^/~]+)/ 96 97 repository ${get_repo(package)} 97 branch tags/${get_tag_prefix(package)}\1 98 branch refs/tags/${get_tag_prefix(package)}\1 99 annotated true 98 100 % if 'undouble' in packages[package]: 99 101 min revision ${packages[package]['undouble'][1]} … … 103 105 match /package_tags/${package}/([^/~]+)~([^/~]+)/ 104 106 repository ${get_repo(package)} 105 branch tags/${get_tag_prefix(package)}\1_\2 107 branch refs/tags/${get_tag_prefix(package)}\1_\2 108 annotated true 106 109 % if 'undouble' in packages[package]: 107 110 min revision ${packages[package]['undouble'][1]} … … 175 178 match /third_tags/${t}/([^/~]+)/ 176 179 repository third/${t}.git 177 branch tags/\1 180 branch refs/tags/\1 181 annotated true 178 182 end match 179 183 % endfor
Note: See TracChangeset
for help on using the changeset viewer.