You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mikael Lundgren <mi...@leanon.se> on 2003/12/12 14:18:07 UTC

Setting properties recursively

Hi,

I started using Subversion just about a month ago and I'm very happy 
with it so far.

FYI. The context of the following message is:
Server: Red Hat Linux 9, Apache 2.0.48, Subversion 0.34
Client: MS Windows 2000 Professional, Subversion client 0.34

There is one thing that I'm wondering about. A couple of weeks ago a 
decided to set svn:keywords on all my java files and if my memory 
doesn't play tricks with me I did that using something like

svn propset svn:keywords -R "Author Rev Date" *.java

and my Java files were updated (NOTE this is IF and only IF my memory 
works as expected). That was with version 0.33.1 (or *MAYBE* 0.32.1).

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

====
svn: The filename, directory name, or volume label syntax is incorrect.
svn: check_path: problem checking path "*.java"
====

If I run the command in a directory where there are *.java files I get this

====
property 'svn:keywords' set (recursively) on 'BitInputStream.java'
property 'svn:keywords' set (recursively) on 'BitOutputStream.java'
property 'svn:keywords' set (recursively) on 'ParseException.java'
====

BUT directories below are unaffected, the only files touched are the 
ones in the current directory.

So, what's happening? I tried searching the issue tracker but could not 
find this issue in there... and before adding it I wanted to check this 
list first.

Any comments or ideas?

Best regards
/Mikael Lundgren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Setting properties recursively

Posted by Patrick Dean Rusk <pa...@comcast.net>.
"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