SVN_LOAD_DIRS(1)
hey bestie, this is the SVN_LOAD_DIRS(1) page from the General Commands Manual π ok soβ
π NAME π
svn_load_dirs β Load directories into a Subversion repository, bestie. That's the whole name section, short and slay. β¨
π¦ SYNOPSIS π¦
svn_load_dirs [options] svn_url svn_import_dir [directory ...]
πΈ DESCRIPTION πΈ
okay so 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. periodt π
β¨ OPTIONS β¨
svn_urlβ The base Subversion URL. πsvn_import_dirβ The path relative tosvn_urlwhere the directories are to be imported. πdirectory ...β The directories to import. If they are not specified on the command line, they are read from standard input. π«Ά-no_user_inputβ Don't ask any questions. Assume that the answer is yes. π-p filenameβ Apply the properties specified in the configuration filefilenameto matching files. See below for a description of the configuration file format. π-svn_username usernameβ Username to use when committing to the repository. π₯-svn_password passwordβ Password to use when committing to the repository. π-t tag_dirβ Create a tag copy intag_dir, relative tosvn_url.tag_dirmay contain a regular expression enclosed within'@'characters. It will be replaced by the matching part from the imported directory names. π§-vβ Be more verbose. Use multiple times for increased effect. β-wc pathβ Use the already checked out working copy atpathinstead of checking out a new working copy. π
π PROPERTY CONFIGURATION FILE FORMAT π
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:
regular_expressionβ A Perl-style regular expression matching the files to apply this rule to. β¨controlβ Either"break"or"cont". If set to"break", processing of the current file will stop if this rule matches. If set to"cont", processing will continue. The latter can be used to set multiple properties for one file. πproperty_nameβ (Optional) The name of the property to set. πproperty_valueβ (Optional) Set the property to this value. π«Ά
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. not me forgetting the optional fields and then wondering why nothing set π
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 ('\'). π
π EXAMPLES π
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. iconic config behavior, no cap π
π SEE ALSO π
/usr/share/doc/subversion-tools/svn_load_dirs.README.gzsvn(1)
π AUTHOR π
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. π«Ά
and that's the whole page bestie π the footer just says SVN_LOAD_DIRS(1) again β no version, no date, just the manual name. bye, go import those dirs slayfully π β¨
π¦ where this page comes from
- debian bookworm: subversion-tools 1.14.2-4+deb12u1 Β· Apache-2.0
- debian trixie: subversion-tools 1.14.5-3 Β· Apache-2.0
- ubuntu jammy: subversion-tools 1.14.1-3build4 Β· Apache-2.0
- ubuntu jammy: subversion-tools 1.14.1-3ubuntu0.22.04.1 Β· Apache-2.0
- ubuntu noble: subversion-tools 1.14.3-1build4 Β· Apache-2.0
- ubuntu questing: subversion-tools 1.14.5-3
- ubuntu resolute: subversion-tools 1.14.5-6build1 Β· Apache-2.0
- ubuntu stonking: subversion-tools 1.14.5-6build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms