You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Moretti, Giovanni" <G....@massey.ac.nz> on 2006/02/17 02:36:29 UTC
Recursive Setting of Id Keyword dies prematurely
I've got a working copy set up in the usual fashion:
/WC
Proj1
Trunk
A.pas
B.pas
Branches
Tags
Proj2
Trunk
D.pas
Branches
C.pas
Tags
And I'm wanting to turn on the "Id" keyword on all pascal files (*.pas).
This would seem to be easy:
- go to the /wc directory
- use svn propset with the recursive option
eg. svn -R propset svn:keywords Id *.pas
Unfortunately this seems to stop whenever it finds a folder without any
.pas files (eg Proj1 which contains no files, just the /Trunk, /Tags &
/Branches directories).
The --force option doesn't help either.
The help on propset seems to hint at this but only after you've had it
fail does the message make sense:
"The svn:Keywords ... and a recursive attempt will set the
property only on the file children of the directory"
Is there any straightforward way (on a WinXP system) of setting "id"
property on all *.pas files using just svn commands, or is it necessary
to use a multistage process using -F to pipe the file list in, or
alternatively, use cygwin & find ... -exec svn {} ?
Thanks
Giovanni
=====================================================================
Giovanni Moretti | Institute of Information Sciences and Technology
Senior Lecturer | Massey University, Palmerston North, New Zealand
Computer Science | Ph 64-6-3505799x2474 =Fax 64-6-3502259 == ZL2BOI
=====================================================================
http://www-ist.massey.ac.nz/moretti mailto:G.Moretti@massey.ac.nz
Re: Recursive Setting of Id Keyword dies prematurely
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 17, 2006, at 03:36, Moretti, Giovanni wrote:
> Is there any straightforward way (on a WinXP system) of setting
> “id” property on all *.pas files using just svn commands, or is it
> necessary to use a multistage process using –F to pipe the file
> list in, or alternatively, use cygwin & find … -exec svn {} ?
Sounds like you've decided to set up auto-props to apply the Id
keyword expansion on all .pas files, but have noticed that auto-props
only applies to new files, not existing ones, and are now trying to
fix the properties on the existing files.
There's a script already written to do that:
http://svn.collab.net/viewvc/svn/tags/1.3.0/contrib/client-side/
svn_apply_autoprops.py?view=markup
There's a newer rewritten version of the script which is faster and
also works with SVK:
http://matt-good.net/2005/12/23/new-and-improved-svn-apply-autoprops-
py-now-with-more-svk/
I don't know if either script works on Windows though.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org