
svnversion | 887
Subversion
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
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 prop-
erties (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. ...