NAME 

cvs2svn - convert a cvs repository into a subversion repository

SYNOPSIS 

cvs2svn [OPTION]... -s svn-repos-path cvs-repos-path cvs2svn [OPTION]... --dumpfile=path cvs-repos-path

DESCRIPTION 

Create a new Subversion repository based on the version history stored in a CVS repository. Each CVS commit will be mirrored in the Subversion repository, including such information as date of commit and id of the committer.
--help, -h
Print the usage message and exit with success.
--help-passes
Print the numbers and names of the conversion passes and exit with success.
--version
Print the version number.
--verbose, -v
Print more information while running.
--quiet, -q
Print less information while running. This option may be specified twice to suppress all non-error output.
--options=path
Read the conversion options from path instead of from the command line. See the documentation for more information. Only the following options are allowed in combination with --options: -h/--help, --help-passes, --version, -v/--verbose, -q/--quiet, -p, --dry-run, and --profile.
-s path
Load CVS repository into the Subversion repository located at PATH. If there is no Subversion repository at path, create a new one.
-p pass
Execute only pass pass of the conversion. pass can be specified by name or by number (see --help-passes).
-p [start]:[end]
Execute passes start through end of the conversion (inclusive). start and end can be specified by name or by number (see --help-passes). If start or end is missing, it defaults to the first or last pass, respectively. For this to work the earlier passes must have been completed before on the same CVS repository, and the generated data files must be in the temporary directory (see --tmpdir).
--existing-svnrepos
Load into existing SVN repository, instead of creating a new repository. Please note that you need write permission for the repository files.
--dumpfile=path
Just produce a dumpfile; don't commit to an SVN repository. Use path as the name of the dumpfile.
--dry-run
Do not create a repository or a dumpfile; just print the details of what cvs2svn would do if it were really converting your repository.
--use-cvs
Use CVS instead of RCS 'co' to extract data (only use this if having problems with RCS, as CVS is much slower).
--trunk-only
Convert only trunk commits, not tags nor branches.
--trunk=path
Set the top-level path to use for trunk in the Subversion repository. The default is trunk.
--branches=path
Set the top-level path to use for branches in the Subversion repository. The default is branches.
--tags=path
Set the top-level path to use for tags in the Subversion repository. The default is tags.
--no-prune
When all files are deleted from a directory in the Subversion repository, don't delete the empty directory (the default is to delete any empty directories.
--encoding=encoding
Use encoding as the encoding for filenames, log messages, and author names in the CVS repos. This option may be specified multiple times, in which case the encodings are tried in order until one succeeds. Default: ascii.
--fallback-encoding=encoding
If all of the encodings specified with --encoding fail, then fall back to using encoding in lossy 'replace' mode. Use of this option may cause information to be lost, but at least it allows the conversion to run to completion. Default: disabled.
--force-branch=regexp
Force symbols whose names match regexp to be branches.
--force-tag=regexp
Force symbols whose names match regexp to be tags.
--exclude=regexp
Exclude branches and tags whose names match regexp from the conversion.
--symbol-default=opt
Specify how to convert ambiguous symbols (those that appear in the CVS archive as both branches and tags). opt must be `branch' (treat every ambiguous symbol as a branch), `tag' (treat every ambiguous symbol as a tag), `heuristic' (decide how to treat each ambiguous symbol based on whether it was used more often as a branch/tag in CVS), or `strict' (no default; every ambiguous symbol has to be resolved manually using --force-branch, --force-tag, or --exclude).
--symbol-transform=pattern:replacement
Transform RCS/CVS symbol names before entering them into Subversion. pattern is a Python regexp pattern and replacement is a replacement using Python's regexp reference syntax. You may specify any number of these options; they will be applied in the order given on the command line. This option can be useful if you're converting a repository in which the developer used directory-wide symbol names like 1_0, 1_1 and 2_1 as a kludgy form of release tagging (the C-x v s command in Emacs VC mode encourages this practice).
--username=name
Set the default username to name when cvs2svn doesn't have a username from the CVS repository to work with. This happens when a branch or tag is created. The default is to use no author at all for such commits.
--fs-type
Pass --fs-type=type to "svnadmin create" when creating a new repository.
--bdb-txn-nosync
Pass --bdb-txn-nosync to "svnadmin create" when creating a new repository.
--cvs-revnums
Record CVS revision numbers as file properties in the Subversion repository. (Note that unless it is removed explicitly, the last CVS revision number will remain associated with the file even after the file is changed within Subversion.)
--mime-types=file
Specify an apache-style mime.types file for setting svn:mime-type.
--auto-props=file
Specify a file in the format of Subversion's config file, whose [auto-props] section can be used to set arbitrary properties on files in the Subversion repository based on their filenames. (The [auto-props] section header must be present; other sections of the config file, including the enable-auto-props setting, are ignored.) Filenames are matched to the filename patterns case-sensitively unless the --auto-props-ignore-case option is specified.
--auto-props-ignore-case
Ignore case when pattern-matching auto-props patterns.
--eol-from-mime-type
For files that don't have the kb expansion mode but have a known mime type, set the eol-style based on the mime type. For such files, set svn:eol-style to "native" if the mime type begins with "text/", and leave it unset (i.e., no EOL translation) otherwise. Files with unknown mime types are not affected by this option. This option has no effect unless the --mime-types option is also specified.
--no-default-eol
Files that don't have the kb expansion mode and (if --eol-from-mime-type is set) unknown mime type usually have their svn:eol-style property to "native". If this option is specified, such files are left with no eol-style (i.e., no EOL translation).
--keywords-off
By default, cvs2svn sets svn:keywords on CVS files to "author id date" if the mode of the RCS file in question is either kv, kvl or not kb. If you use the --keywords-off switch, cvs2svn will not set svn:keywords for any file. While this will not touch the keywords in the contents of your files, Subversion will not expand them.
--tmpdir=path
Set the path to use for temporary data. Default is the current directory.
--skip-cleanup
Prevent the deletion of temporary files.
--profile
Profile with 'hotshot' (into file cvs2svn.hotshot).
--svnadmin=path
Path to the svnadmin program.
--co=path
Path to the co program. (co is needed if --use-cvs is not specified.)
--cvs=path
Path to the cvs program. (cvs is needed if --use-cvs is specified.)
--sort=path
Path to the GNU sort program. (cvs2svn requires GNU sort.)

FILES 

The current directory (or the directory specified by --tmpdir) is used as scratch space for data files of the form cvs2svn-data.* and a dumpfile named cvs2svn-dump.

AUTHORS 

Main authors are: C. Michael Pilato <cmpilato@collab.net> Greg Stein <gstein@lyra.org> Branko Čibej <brane@xbc.nu> Blair Zajac <blair@orcaware.com> Max Bowsher <maxb@ukf.net> Brian Fitzpatrick <fitz@red-bean.com> Tobias Ringström <tobias@ringstrom.mine.nu> Karl Fogel <kfogel@collab.net> Erik Hülsmann <e.huelsmann@gmx.net> David Summers <david@summersoft.fay.ar.us> Michael Haggerty <mhagger@alum.mit.edu>

Manpage was written for the Debian GNU/Linux system by Laszlo 'GCS' Boszormenyi <gcs@lsc.hu> (but may be used by others).

SEE ALSO 

cvs(1), svn(1), svnadmin(1)