Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Collins-Sussman B.Version control with Subversion 1.1.pdf
Скачиваний:
9
Добавлен:
23.08.2013
Размер:
1.53 Mб
Скачать

Subversion Complete Reference

--force-uuid

By default, when loading data into repository that already contains revisions, svnadmin will ignore the UUID from the dump stream. This switch will cause the repository's UUID to be set to the UUID from the stream.

--ignore-uuid

By default, when loading an empty repository, svnadmin will use the UUID from the dump stream. This switch will cause that UUID to be ignored.

--incremental

Dump a revision only as a diff against the previous revision, instead of the usual fulltext.

--parent-dir DIR

When loading a dump file, root paths at DIR instead of /.

--revision (-r) ARG

Specify a particular revision to operate on.

--quiet

Do not show normal progress—show only errors.

svnadmin Subcommands

223

Subversion Complete Reference

Name

svnadmin create -- Create a new, empty repository.

svnadmin create

Synopsis

svnadmin create REPOS_PATH

Description

Create a new, empty repository at the path provided. If the provided directory does not exist, it will be created for you.43

Switches

--bdb-txn-nosync --bdb-log-keep --config-dir DIR --fs-type TYPE

Examples

Creating a new repository is just this easy:

$ svnadmin create /usr/local/svn/repos

In Subversion 1.0, a Berkeley DB repository is always created. In Subversion 1.1, a Berkeley DB repository is the default repository type, but an FSFS repository can be created using the --fs-type option:

$ svnadmin create /usr/local/svn/repos --fs-type fsfs

43Remember, svnadmin works only with local paths, not URLs.

224

Subversion Complete Reference

Name

svnadmin deltify -- Deltify changed paths in a revision range. svnadmin deltify

Synopsis

svnadmin deltify [-r LOWER[:UPPER]] REPOS_PATH

Description

svnadmin deltify only exists in 1.0.x due to historical reasons. This command is deprecated and no longer needed.

It dates from a time when Subversion offered administrators greater control over compression strategies in the repository. This turned out to be a lot of complexity for very little gain, and this “feature” was deprecated.

Switches

--revision (-r) --quiet

225

Subversion Complete Reference

Name

svnadmin dump -- Dump the contents of filesystem to stdout. svnadmin dump

Synopsis

svnadmin dump REPOS_PATH [-r LOWER[:UPPER]] [--incremental]

Description

Dump the contents of filesystem to stdout in a “dumpfile” portable format, sending feedback to stderr. Dump revisions LOWER rev through UPPER rev. If no revisions are given, dump all revision trees. If only LOWER is given, dump that one revision tree. See the section called “Migrating a Repository” for a practical use.

If the size of your Subversion dumpfile is a concern, you can use the --deltas switch to (in some cases drastically) reduce the size of the dumpfile that svnadmin creates. With this switch, instead of writing the full content of each revision to the dumpfile, svnadmin dump will only emit the differences from one revision to the next. There are, however, disadvantages to creating deltified dumpfiles—it's more CPU intensive to create them, svndumpfilter can't operate on them, and non-deltified dumpfiles tend to compress better.

Switches

--revision (-r) --incremental --quiet --deltas

Examples

Dump your whole repository:

$ svnadmin dump /usr/local/svn/repos SVN-fs-dump-format-version: 1 Revision-number: 0

* Dumped revision 0. Prop-content-length: 56 Content-length: 56

Incrementally dump a single transaction from your repository:

$ svnadmin dump /usr/local/svn/repos -r 21 --incremental * Dumped revision 21.

SVN-fs-dump-format-version: 1 Revision-number: 21 Prop-content-length: 101 Content-length: 101

226

Соседние файлы в предмете Электротехника