From dfc85c2d0dae00f55981bd8245f467e97a917666 Mon Sep 17 00:00:00 2001 From: mhagger Date: Fri, 14 Jan 2011 08:51:32 +0000 Subject: [PATCH] Make the cvs2git instructions more complete. Part of this change was suggested by Jonathan Nieder . git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5314 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- www/cvs2git.html | 66 ++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/www/cvs2git.html b/www/cvs2git.html index e96a41c8..08e8aeb0 100644 --- a/www/cvs2git.html +++ b/www/cvs2git.html @@ -288,14 +288,26 @@ make check # ...optional
  • - Configure cvs2git for your conversion. This can be done via + Configure cvs2git and run the conversion. This can be done via command-line options or via an options file:
      -
    • The command-line options for running cvs2git are documented +
    • + +

      The command-line options for running cvs2git are documented in the cvs2git man page and in the output of cvs2git - --help.

    • + --help. For example:

      + +
      +cvs2git \
      +    --blobfile=cvs2svn-tmp/git-blob.dat \
      +    --dumpfile=cvs2svn-tmp/git-dump.dat \
      +    --username=cvs2git \
      +    /path/to/cvs/repo
      +
      + +
    • @@ -316,11 +328,7 @@ cvs2git --options=OPTIONS-FILE
    -
  • - -
  • - -

    Run cvs2git. This creates two output files in This creates two output files in git fast-import format. The names of these files are specified by your options file or command-line arguments. In the example, @@ -331,20 +339,30 @@ cvs2git --options=OPTIONS-FILE

  • -

    Initialize a git repository, and load the dump files using - git fast-import:

    +

    Initialize a git repository:

    +mkdir myproject.git
    +cd myproject.git
     git init
    -git fast-import --export-marks=cvs2svn-tmp/git-marks.dat < cvs2svn-tmp/git-blob.dat
    -git fast-import --import-marks=cvs2svn-tmp/git-marks.dat < cvs2svn-tmp/git-dump.dat
    +
    + +
  • + +
  • + +

    Load the dump files into the new git repository using git + fast-import:

    + +
    +git fast-import --export-marks=../cvs2svn-tmp/git-marks.dat < ../cvs2svn-tmp/git-blob.dat
    +git fast-import --import-marks=../cvs2svn-tmp/git-marks.dat < ../cvs2svn-tmp/git-dump.dat
     

    This can, of course, be shortened to:

    -git init
    -cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import
    +cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import
     
  • @@ -353,6 +371,26 @@ cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import run the contrib/git-move-refs.py script from within the git repository. +
  • + +

    (Optional) View the results of the conversion, for example:

    + +
    +gitk --all
    +
    + +
  • + +
  • + +

    Check out the master branch into the working copy:

    + +
    +git checkout master
    +
    + +
  • +

    Feedback would be much appreciated, including reports of success -- 2.11.4.GIT