15.8. Other Subversion Components

 < Day Day Up > 

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, which is cited in the Bibliography. 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 a revision can be created when the original revision contained paths that were filtered out. This option removes such empty revisions from the dump.


--preserve-revprops

If empty revisions are being kept, preserve their revision properties (such as log message, author, date, and so on). 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, subsequent revisions are renumbered, so that all revision numbers are contiguous.

Example

Dump the repository, 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, non-switched 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.

     < Day Day Up > 


    Unix in a Nutshell
    Unix in a Nutshell, Fourth Edition
    ISBN: 0596100299
    EAN: 2147483647
    Year: 2005
    Pages: 201

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