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

"svnlook changed" different for WC->URL and URL->URL copy

From: <Servatius.Brandt_at_fujitsu-siemens.com>
Date: 2005-05-30 16:30:58 CEST


When copying a working copy to an URL:

    svn copy trunk svn://host/repos/branches/B1,

the command

    svnlook changed -t "$TXN" "$REPOS" >&2

in the pre-commit hook shows the target directory and the files/subdirs

    A branches/B1/
    A branches/B1/file
    A branches/B1/dir
    A branches/B1/dir/file

But when copying the same tree specified as an URL source:

    svn copy svn://host/repos/trunk svn://host/repos/branches/B1,

just the top directory is shown:

    A branches/B1/

Is this intended or a bug? It makes it difficult to set up separate
permissions for different paths. I use svnperm.py and would like to
give developers the right to change existing branches, branch
maintainers the right to create and remove branches but not to change
them, and repository administrators the rights to create top directories
like "branches" but not to add any directories or files therein:

    branches/[^/]+/.* = @maintainers(add,remove)
    branches/[^/]+/.+ = @developers(add,remove,update)
    [^/]+/ = @admins(add,remove)

The permission check for @admins denies the right for a WC->URL copy,
but allows an URL->URL copy of a tree into the top level directory:

    svn copy trunk svn://host/repos/B1 # denied
    svn copy svn://host/repos/trunk svn://host/repos/B1 # allowed

- Servatius

Servatius Brandt Phone: +49 89 636-41504
Fujitsu Siemens Computers Fax: +49 89 636-48716
EP SW AD C++ Email: Servatius.Brandt@fujitsu-siemens.com

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 30 16:33:45 2005

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.