X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-svnimport.txt;h=5c543d5d1b40d1d60be27ad784c3917165037055;hb=39c015c556f285106931e0500f301de462b0e46e;hp=a27a83596c05e519ff36e65e760f6b8041852af7;hpb=25f6f325d7a8f7cb686a9ffd9fa2c00b3aa85a60;p=git.git diff --git a/Documentation/git-svnimport.txt b/Documentation/git-svnimport.txt index a27a8359..5c543d5d 100644 --- a/Documentation/git-svnimport.txt +++ b/Documentation/git-svnimport.txt @@ -10,8 +10,8 @@ git-svnimport - Import a SVN repository into git SYNOPSIS -------- 'git-svnimport' [ -o ] [ -h ] [ -v ] [ -d | -D ] - [ -C ] [ -i ] [ -u ] [-l limit_nr_changes] - [ -b branch_subdir ] [ -t trunk_subdir ] [ -T tag_subdir ] + [ -C ] [ -i ] [ -u ] [-l limit_rev] + [ -b branch_subdir ] [ -T trunk_subdir ] [ -t tag_subdir ] [ -s start_chg ] [ -m ] [ -M regex ] [ ] @@ -21,7 +21,7 @@ DESCRIPTION Imports a SVN repository into git. It will either create a new repository, or incrementally import into an existing one. -SVN access is done by the SVN:: Perl module. +SVN access is done by the SVN::Perl module. git-svnimport assumes that SVN repositories are organized into one "trunk" directory where the main development happens, "branch/FOO" @@ -29,7 +29,7 @@ directories for branches, and "/tags/FOO" directories for tags. Other subdirectories are ignored. git-svnimport creates a file ".git/svn2git", which is required for -incremental SVN imports. +incremental SVN imports. OPTIONS ------- @@ -40,45 +40,46 @@ OPTIONS -s :: Start importing at this SVN change number. The default is 1. + -When importing incementally, you might need to edit the .git/svn2git file. +When importing incrementally, you might need to edit the .git/svn2git file. -i:: Import-only: don't perform a checkout after importing. This option - ensures the working directory and cache remain untouched and will + ensures the working directory and index remain untouched and will not create them if they do not exist. --t :: +-T :: Name the SVN trunk. Default "trunk". - --T :: + +-t :: Name the SVN subdirectory for tags. Default "tags". - + -b :: Name the SVN subdirectory for branches. Default "branches". - + -o :: The 'trunk' branch from SVN is imported to the 'origin' branch within the git repository. Use this option if you want to import into a different branch. --m:: +-r:: + Prepend 'rX: ' to commit messages, where X is the imported + subversion revision. + +-m:: Attempt to detect merges based on the commit message. This option - will enable default regexes that try to capture the name source - branch name from the commit message. + will enable default regexes that try to capture the name source + branch name from the commit message. -M :: Attempt to detect merges based on the commit message with a custom - regex. It can be used with -m to also see the default regexes. - You must escape forward slashes. + regex. It can be used with -m to also see the default regexes. + You must escape forward slashes. --l :: - Limit the number of SVN changesets we pull before quitting. - This option is necessary because the SVN library has serious memory - leaks; the recommended value for nontrivial imports is 100. +-l :: + Specify a maximum revision number to pull. - git-svnimport will still exit with a zero exit code. You can check - the size of the file ".git/svn2git" to determine whether to call - the importer again. + Formerly, this option controlled how many revisions to pull, + due to SVN memory leaks. (These have been worked around.) -v:: Verbosity: let 'svnimport' report what it is doing. @@ -103,11 +104,7 @@ with a 40x error pretty quickly. If you're using the "-d" or "-D" option, this is the URL of the SVN repository itself; it usually ends in "/svn". -:: - The URL of the SVN module you want to import. For local - repositories, use "file:///absolute/path". - - +:: The path to the module you want to check out. -h::