SVN_LOAD_DIRS(1) | General Commands Manual | SVN_LOAD_DIRS(1) |
svn_load_dirs - Load directories into a Subversion repository
svn_load_dirs [options] svn_url svn_import_dir [directory ...]
This tool can be used for importing one or more directories into a Subversion repository. The difference from "svn import" is that svn_load_dirs can update an existing directory tree, and tag it properly. Only changes from the previous version will be recorded in the revision, so that you can easily apply them on another branch. For example, this is very useful for managing the upstream source when maintaining Debian packages in Subversion.
The property configuration file, which is specified by the -p option, contains rules for applying properties to the imported files. It consists of lines of the following format:
regular_expression control property_name property_value
The meaning of the fields are:
The last two fields may be omitted, in which case the rule will not set any properties. This is useful for excluding certain files from subsequent rules.
You need to quote the regular_expression, property_name and property_value fields with double quotes ('"') if you have whitespace in them. Single and double quotes can be escaped with backslash ('\').
For example, to import the contents of the foo-1.3 directory into the upstream/current directory of the foo repository:
svn_load_dirs svn+ssh://svn.example.org/svn/foo upstream/current foo-1.3
A tag can also be added automatically using the -t option:
svn_load_dirs svn+ssh://svn.example.org/svn/foo -t ´upstream/@\d+\.\w+@´ upstream/current foo-1.3
Here's an example of a property configuration file:
\.doc$ break svn:mime-type application/msword
\.ds(p|w)$ break svn:eol-style CRLF
\.dos2unix-eol\.sh$ break
.* break svn:eol-style native
This example specifies that .doc files are to be treated as binary files, that .dsp and .dsw files have their line ending characters kept, and that all other files except dos2unix-eol.sh have their line endings converted to the native style.
/usr/share/doc/subversion-tools/svn_load_dirs.README.gz
This manual page was written by Per Olofsson <pelle@dsv.su.se> for the Debian distribution (but may be used by others). Some parts were taken from the README.