anyone interested in svnprops?

9 views
Skip to first unread message

dan

unread,
Nov 10, 2005, 3:59:49 PM11/10/05
to Subversion SVN
I created a small executable jar, svnprops.jar to help manage the
properties associated with files in an svn repository. Apparently there
is no official mechanism for auto-props on the server side. You can use
svnprops to traverse a set of files and set default /custom properties
and maybe even cron it ...

USAGE
=============================================

svnprops comes with ABSOLUTELY NO WARRANT.
Copyright (C) Alpha-Omega by Daniel Bush <dan....@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 ...

Reply all
Reply to author
Forward
0 new messages