[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Setting properties recursively

From: Patrick Dean Rusk <patrickrusk_at_comcast.net>
Date: 2003-12-13 04:52:31 CET

"Mikael Lundgren" wrote:
> svn propset svn:keywords -R "Author Rev Date" *.java
>
> Now I am trying to do the same thing again, however this time I get an
> error message if I try to do this in a directory where there are no
> *.java files

    Since no one authoritative has answered your question, I'll take a
stab...

    If you were running on Unix, the "*.java" would be processed by the
shell prior to invoking Subversion. Since there are no .java files, it would
resolve to nothing, thereby providing no target to Subversion.

    However, you ran from Windows, and from the error messages, it's clear
that "*.java" was passed to Subversion.

    Here's my stab. I'm guessing that Subversion on Windows processes the
path element before doing anything else and effectively tacks it on to the
command, preserving the same semantics as on Unix, for portability's sake.
Thus, "*.java" resolving to nothing would leave a command missing it's
target. Even if it doesn't do something like that, it apparently regards it
as an error when it doesn't resolve to anything, just like putting a
mythical "foo.bar" would upset it.

    By the way, I doubt that combining "-R" with "*.java" is interpreted as
"recursively set the property on all Java files". It probably means "set the
property on all java files in this directory and on *all* files in
sub-directories".

Patrick Rusk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 13 04:53:09 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.