{section: Migrating old changes from a previous CVS workspace into GIT} -During the transition period between CVS and GIT, developers will have CVS workspaces which contain changes that have to be moved over to a git workspace. Currently, the Condor source code CVS repository is frozen and in read only mode. So what you do is this: +Migrations should have already been done, but just in case any are still lingering, this documention is now at MigratingCvsWorkspaceToGit. -{code} -# Prepare the our code in the CVS workspace we have -$ cd /old/cvs/workspace - -# If your workspace was behind the times, then this will update it to where -# the CVS repository was frozen. -$ cvs update - -# resolve any conflicts - -# cd to the toplevel (containing config/ src/ imake/ etc.) directory and -# produce a patch file -$ cvs -q diff -u >& cdiff - -# edit the top of the patch file to remove any lines denoted with ? -$ vim .... - -# prepare a git repository (as in previous stages in this tutorial) and -# ensure that you've checked out the corresponding branch as from the workspace -# you are getting your changes. -$ git clone /p/condor/repository/CONDOR_SRC.git -$ git branch <your_branch> origin/<your_branch> -$ git checkout <your_branch> - -# then copy the cdiff file to the toplevel of the git workspace -$ cp /old/cvs/workspace/cdiff ./CONDOR_SRC - -# Then patch the workspace using GNU patch -$ cd ./CONDOR_SRC -$ patch -p0 < cdiff - -# If any of the patches do not apply cleanly, resolve conflicts. - -# At this point check the diffs to ensure you changed what you thought you -# changed. Do be careful to get this correct. -$ git diff - -# Then commit your changes -$ git commit -a - -# and push -$ git push -{endcode} {section: Creating a new development or stable series}