Changes between Version 3 and Version 4 of ChimeraWithGit


Ignore:
Timestamp:
Dec 2, 2010, 4:03:32 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraWithGit

    v3 v4  
    22== Developing Chimera with git ==
    33
    4 I started out developing an extension for Chimera with a [http://git-scm.com/ git] repository.  It was possible to import the [http://git-scm.com/ git] repository history into the Chimera [http://subversion.tigris.org/ subversion] repository, using some instructions from [http://code.google.com/p/support/wiki/ImportingFromGit google code].
    5 
    6 I ran the following:
     4I started out developing an extension for Chimera with a [http://git-scm.com/ git] repository.  It was possible to import the git repository history into the Chimera [http://subversion.tigris.org/ subversion] repository, using some instructions from [http://code.google.com/p/support/wiki/ImportingFromGit google code].  I ran the following:
    75{{{
     6#
     7# Step 1.  Create a git svn clone of the Chimera source.
     8#
    89cd /data/src/
    910mkdir tmp
    1011cd tmp/
    1112git svn clone svn+ssh://plato.cgl.ucsf.edu/usr/local/src/svn/chimera/trunk chimera
    12 
     13# Wait a long time for this to catch up on 30000+ commits
     14cd chimera
     15git status
     16# Fetch the git repository for my Chimera extension; this does not merge anything.
     17git fetch ssh://weber.cgl.ucsf.edu/data/gitroot/chimera-extension
     18# Create a temporary branch for the fetched repository, and tag its head:
     19git branch tmp $(cut -b-40 .git/FETCH_HEAD)
     20git tag -a -m "Animation last fetch" last tmp
     21#
     22# Step 2.  Apply initial commit from my git repository onto the git-svn
     23#
     24INIT_COMMIT=$(git log tmp --pretty=format:%H | tail -1)
     25git checkout $INIT_COMMIT .
     26git commit -C $INIT_COMMIT
     27#
     28# Step 3.  Rebase and submit
     29#
     30# Apply all the other commits to the tmp branch; make it the new master branch.
     31git rebase master tmp
     32git branch -M tmp master
     33# Lastly, commit the changes back to the svn repository
     34git svn dcommit
    1335}}}