> -----Original Message-----
> From: Stephen Butler [mailto:sbut...@elego.de] 
> Sent: 08 June 2011 13:49
> To: Cooke, Mark
> 
> On Jun 8, 2011, at 14:33 , Cooke, Mark wrote:
> 
> >> -----Original Message-----
> >> From: Nico Kadel-Garcia [mailto:nka...@gmail.com] 
> >> Sent: 08 June 2011 13:28
> >> To: Johan Corveleyn
> >> Cc: Andreas Krey; Ryan Schmidt; Schroeder, Hartmut; 
> >> users@subversion.apache.org
> >> Subject: Re: svn copy (server-side) into existing folder
> >> 
> >> On Wed, Jun 8, 2011 at 7:18 AM, Johan Corveleyn 
> >> <jcor...@gmail.com> wrote:
> >>> On Wed, Jun 8, 2011 at 1:01 PM, Andreas Krey 
> <a.k...@gmx.de> wrote:
> >>>> On Wed, 08 Jun 2011 05:16:42 +0000, Ryan Schmidt wrote:
> >>>> ...
> >>>>> This behavior is consistent with the unix cp command and 
> >> should therefore not be unexpected.
> >>>> 
> >>>> It is not unexpected, but stupid. As 'svn cp' is also the tool to
> >>>> create tags, it is rather strange that you can just do
> >>>> 
> >>>>  svn cp ${base}/trunk ${base}/tags/1.0.0
> >>>> 
> >>>> (that is, create a tag) twice in a row with any warning 
> whatsoever,
> >>>> and ending up with an extra 'trunk' dir in the tag.
> >>>> 
> >>>> Has bitten us more than once.
> >>> 
> >>> To avoid that, you could have a pre-commit hook refuse any commits
> >>> inside tags, to make tags really unchangeable things.
> >> 
> >> +1 for sanity. Only site admins with local file access or other
> >> authorized permissions should be able to edit tags.
> >> 
> > ...as this is something I have been meaning to do for a 
> while, can someone point me to a suitable script for a 
> windoze environment?  All the sample scripts I find seem to 
> be *nix shell scripts...
> 
> Try svnperms.py.  The trunk version works with 1.6 just fine.
> 
>
http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/svnp
erms.py
>
http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/svnp
erms.conf.example
> 
> The example config file shows how to lock down a tags directory. 
> You can call svnperms.py with a simple batch file (pre-commit.bat).
> 
> [[[
> set repos=%1
> set txn=%2
> 
> set path=%path%;C:\Python26
> set path=%path%;C:\Program Files (x86)\<<<your svn cmdline>>>\bin
> 
> python %repos%\hooks\svnperms.py -r %repos% -t %txn%
> ]]]
> 
> Regards,
> Steve
> 
> > 
> > Many thanks (and apologies for the almost hi-jack)
> > 
> > ~ mark c
> 

Fantastic, thanks very much (again)!

~ mark c

Reply via email to