You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Norbert Unterberg <ne...@gmx.net> on 2004/07/23 22:14:36 UTC

Newbie Question: Recursive operations not working?

This is may be a newbie issue:

(SVN 1.05, WIN32)

Assume I have a working copy with this layout:

D:\Prj\
   file1.txt
   dir1\file2.txt

I would like to set the svn:eol-style property on all text files:
	D:\Prj>svn ps svn:eol-sytle native *.txt
	property 'svn:eol-sytle' set on 'file1.txt'

This is fine. Now I try it recursively:
	D:\Prj>svn ps -R svn:eol-sytle native *.txt
	property 'svn:eol-sytle' set (recursively) on 'file1.txt'

What about dir1\file2.txt? I assumed that -R means "perform the operation
recursively on all project directories", but why did SVN not go into the
dir1 dirctory to set the property on file2.txt?

Thanks
Norbert



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

Re: Newbie Question: Recursive operations not working?

Posted by Michael W Thelen <th...@cs.utah.edu>.
* Norbert Unterberg <ne...@gmx.net> [2004-07-25 15:04]:
> I would like to set the svn:eol-style property on all text files:
> 	D:\Prj>svn ps svn:eol-sytle native *.txt
> 	property 'svn:eol-sytle' set on 'file1.txt'
> 
> This is fine. Now I try it recursively:
> 	D:\Prj>svn ps -R svn:eol-sytle native *.txt
> 	property 'svn:eol-sytle' set (recursively) on 'file1.txt'
> 
> What about dir1\file2.txt? I assumed that -R means "perform the operation
> recursively on all project directories", but why did SVN not go into the
> dir1 dirctory to set the property on file2.txt?

In both cases, you're just telling Subversion to operate on *.txt (all .txt
files in the current directory).  It doesn't recurse into dir1 because you're
never telling it about dir1.  In order to get it to recurse as expected, you
need to do something like this:

svn ps -R svn:eol-style native .

However, this will set svn:eol-style on *all* files in the current directory
and subdirectories, not just .txt files.  I'm not sure how of the Windows
equivalent, but on Linux, you would do something like this:

svn ps svn:eol-style native $(find . -name '*.txt')

-- Mike

-- 
Michael W. Thelen
Continued dependence upon relief induces a spiritual and moral disintegration
fundamentally destructive to the national fibre. To dole out relief in this
way is to administer a narcotic, a subtle destroyer of the human spirit.
                -- Franklin Delano Roosevelt