Section 14.8. Other Subversion Components


14.8. Other Subversion Components

Subversion creates the mod_dav_svn plug-in for use with the Apache 2.0 httpd web server. By running Apache 2.0 with mod_dav_svn, you can make your repository available via the HTTP protocol. Full details are provided in Version Control with Subversion (O'Reilly). Two other commands are supplied with Subversion.

svndumpfilter

     svndumpfilter subcommand [options] paths ... 

Filter out files from a repository dump for use in later repository restoration (see svnadmin dump and svnadmin load).

Subcommands


exclude

Exclude from the dump the files and directories named by paths. Everything else is left in the dump.


help, h, ?

Print a help message and exit.


include

Include in the dump only the files and directories named by paths. Everything else is excluded.

Options


--drop-empty-revs

Remove empty revisions. Such revisions can be created when the original revision contained paths that were filtered out. This option removes empty revisions from the dump.


--preserve-revprops

If empty revisions are being kept, preserve their revision properties (such as log message, author, date, etc.). Otherwise, empty revisions contain only the original datestamp and a generated log message that the revision was dropped.


--renumber-revs

If empty revisions are being dropped, renumber subsequent revisions, so that all revision numbers are contiguous.

Example

Dump the repository, and then separate out its two components:

     $ svnadmin dump /path/to/repos > dumpfile     * Dumped revision 0.     * Dumped revision 1.     * Dumped revision 2.     ...           $ svndumpfilter include client < dumpfile > client-dumpfile     $ svndumpfilter include server < dumpfile > server-dumpfile 

svnversion

     svnversion [options] path [URL] 

Produce a version number for the working copy in path. The URL is the pathname part of a Subversion URL used to tell if the path was switched (see svn switch).

The output is a single number if the working copy represents an unmodified, nonswitched revision whose URL matches the supplied URL.

Options


-c

Report "last changed" revision instead of the current revision.


-n

Do not print the final newline.



Linux in a Nutshell
Linux in a Nutshell
ISBN: 0596154488
EAN: 2147483647
Year: 2004
Pages: 147

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net