You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dan Bush <da...@gmail.com> on 2006/01/18 18:04:36 UTC
svntool
I created a nifty svn tool to deal manage props. Anyone interested?
How do I contrib?
Here is the usage (see explanation at bottom) and the tool is attached.
====================================================
svnprops comes with ABSOLUTELY NO WARRANT.
Copyright (C) Alpha-Omega by Daniel Bush <da...@gmail.com>
svnprops is a fancy pants smart wrapper around the svn propadd and propdel
commands. By default, svnprops operates recursively on the current
directory. Properties specified via command line arguments will override the
defaults.
Usage: svnprops [OPTION]... [[REGEX=prop=value];...] [FILE]...
OPTIONS SUMMARY:
-d, --delete propdel
-h, --help show this help screen
-l, --list-defaults list the default properties
-n, --dry-run show what would have happened
--no-defaults don't set default properties
-N, --non-recursive operate on single directory only
-s, --set propset (default)
-v, --verbose be extra loud
--version output version information
-q, --quiet be extra quiet
EXAMPLE USAGE:
* Recursively sets the default properties on the current directory:
svnprops
* File list supplied via stdin:
find . -name *.java | svnprops
* Set a custom / non default property on myfile:
svnprops myfile=foo=bar myfile
Why the hell do I need this?
Because SVN has no repository side mechanism which compliments client side
auto-props! You may be thinking about using the hook scripts but, note the
WARNING in the svn documentation!
Clients without auto-props enabled and the proper properties defined, end up
adding and importing resources without setting the proper properties such as
svn:eol-style, svn:mime-type, etc ...