RE: Using svnperms.py and AuthzSVNAccessFile file together?

2017-03-27 Thread Bennett, Brian
Thank you for the response, but I'd considered that configuration. Doesn't this:

$authenticated = rw

give all authenticated users read access that will not be managed by 
pre-commit/svnperms (since it isn't a write operation).

One of my goals is that I must restrict read access as well.

Brian Bennett | Supv System Admin & Support, TA TECH Change Mgmt/Production 
Support
o: 319-355-7602 | c: 319-533-1094
e: brian.benn...@transamerica.com | w: www.transamerica.com

Transamerica
6400 C St. SW, Cedar Rapids, IA 52404 MS-2410
Facebook | LinkedIn


-Original Message-
From: Branko Čibej [mailto:br...@apache.org] 
Sent: Saturday, March 25, 2017 4:41 AM
To: users@subversion.apache.org
Cc: Bennett, Brian 
Subject: Re: Using svnperms.py and AuthzSVNAccessFile file together?

On 24.03.2017 21:28, Bennett, Brian wrote:
> My goals are:
>
> * Have all read-write access controlled solely by svnperms.py
>
> * Restrict users that can read the repository
>
> I know that using "* = rw" in the AuthzSVNAccessFile file would allow all 
> read-write requests to be managed by svnperms.py, but it also allows all 
> users to have read access as well. So it is appearing like the only way to 
> make this work is to do something like the following in the 
> AuthzSVNAccessFile file:

https://urldefense.proofpoint.com/v2/url?u=http-3A__svnbook.red-2Dbean.com_en_1.7_svn.serverconfig.pathbasedauthz.html&d=DwICaQ&c=9g4MJkl2VjLjS6R4ei18BA&r=CorEYR_fG6hKwP1xRO7dkFFJM6UfxLGgypqJT0q3mO4&m=ZPaBa681lvEbh1L0Cm4P9L4VaQf9I6doOlJHAT0aN64&s=FophqA5eBN5Wz3n-LxVYU-GXnLijtR5m6B4UUIgogCY&e=
 

[repo:/]
$authenticated = rw
$anonymous =



RE: How to checkout only the changes

2017-03-27 Thread Andrew Reedick
> From: horst.schl...@gmx.de [mailto:horst.schl...@gmx.de] 
> Sent: Friday, March 24, 2017 4:04 PM
> To: users@subversion.apache.org
> Subject: How to checkout only the changes
>
>
> Is there a way to export only the changes, that occured in a specific 
> revision? Like export or checkout only the added or modified files in their 
> respective paths? Deletions and cheap copies cannot be treated that way, 
> obviously. Please CC as I am not subscribed.

FYI, 'svn copy' counts as an Add.  That may or may not be a concern?

Mostly Untested But Seems to Work in the Average Case(tm), so user beware:

#!/bin/bash

# usage:  foo.sh 1234   http://svn_server/repo_name
REV=$1
SVNREPO=$2

svn log -qv -r $REV $SVNREPO 

# Yes we're grepping on XML because :laziness:
# And we're using perl because I can't be bothered with sed/awk subtleties 
svn log -qv --xml -r $REV "$SVNREPO" | perl -ne 'chomp; $a=1 if /^   
action="[AD]"/; print "$1\n" if ( $a && /^   kind="file">(.*)<\/path>/ ); $a=0 
if /<\/path>/;' | while read i
do 
D=./`dirname "$i"`
mkdir -p "$D"
svn export --force "$SVNREPO/$i@$REV" "$D/"
done