Re: Betr.: RE: Hook help

2011-02-22 Thread ankush chadha
> > > I am trying to write a hook to prevent deletion of elements through a > pre-commit hook. > > > >>If you're not using the bindings you'd want svnlook, probably svnlook > diff. > > >>But, do you really want such a hook? If a user has permission to add > stuff they should be allowed to also

Re: Betr.: RE: Hook help

2011-02-21 Thread Chris . Lichter
Personally I run the svnlook changed command on the txn. This allows us to see exactly what is being done on the changed files. If there is a delete you can exit out and kill the commit. Here is the example written in python: look_cmd = "svnlook changed -t %s %s" % (txn, path) for file in os.pope