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

Re: Newbie Question: Recursive operations not working?

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-07-28 07:14:49 CEST

* Norbert Unterberg <nepo@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

Received on Wed Jul 28 07:15:32 2004

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.