aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMatthias Urlichs <smurf@kiste.(none)>2005-06-28 21:21:33 +0200
committerMatthias Urlichs <smurf@kiste.(none)>2005-06-28 21:21:33 +0200
commit6c9a0dc2b5fffdb67593ee6bb828fcc578b84207 (patch)
tree8f0389371b2fa7ba7aa8ff41b450a705889f1002 /Documentation
parente694dbabbfdb847d6adb33c33ea188b5a8f0c175 (diff)
downloadgit-6c9a0dc2b5fffdb67593ee6bb828fcc578b84207.tar.gz
More doc
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/cvs-migration.txt34
1 files changed, 19 insertions, 15 deletions
diff --git a/Documentation/cvs-migration.txt b/Documentation/cvs-migration.txt
index da9d63e410..e39b82938a 100644
--- a/Documentation/cvs-migration.txt
+++ b/Documentation/cvs-migration.txt
@@ -63,7 +63,7 @@ Once you've gotten (and installed) cvsps, you may or may not want to get
any more familiar with it, but make sure it is in your path. After that,
the magic command line is
- git cvsimport -d <cvsroot> <module> <destination>
+ git cvsimport -v -d <cvsroot> <module> <destination>
which will do exactly what you'd think it does: it will create a git
archive of the named CVS module. The new archive will be created in the
@@ -72,26 +72,30 @@ Default is the local directory.
It can take some time to actually do the conversion for a large archive
since it involves checking out from CVS every revision of every file,
-and the conversion script can be reasonably chatty, but on some not very
-scientific tests it averaged about twenty revisions per second, so a
-medium-sized project should not take more than a couple of minutes. For
-larger projects or remote repositories, the process may take longer.
+and the conversion script is reasonably chatty unless you omit the '-v'
+option, but on some not very scientific tests it averaged about twenty
+revisions per second, so a medium-sized project should not take more
+than a couple of minutes. For larger projects or remote repositories,
+the process may take longer.
-After the import is done, do this:
-
- cp .git/refs/heads/<branch> .git/refs/heads/master
- git-read-tree
- git-checkout-cache -q -f -u -a
-
-The head branch is named "origin" by default; you can change that using
-the '-o' option to "git cvsimport".
+After the (initial) import is done, the CVS archive's current head
+revision will be checked out -- thus, you can start adding your own
+changes right away.
The import is incremental, i.e. if you call it again next month it'll
-fetch any CVS updates that have been happening in the meantime. You can
-then merge those updates into your main branch:
+fetch any CVS updates that have been happening in the meantime. The
+cut-off is date-based, so don't change the branches that were imported
+from CVS.
+
+You can merge those updates (or, in fact, a different CVS branch) into
+your main branch:
cg-merge <branch>
+The HEAD revision from CVS is named "origin", not "HEAD", because git
+already uses "HEAD". (If you don't like 'origin', use cvsimport's
+'-o' option to change it.)
+
Emulating CVS behaviour
-----------------------