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

Re: Checking out to a SVN directory

From: Edward Diener <ediener_at_loyaltyworks.com>
Date: 2004-09-08 17:09:14 CEST

Thanks, but svn:externals will not work for me. Depending on the user, I
want a particular local subdirectory to point to a particular repository
path. Furthermore the repository path will be on a different repository than
the top-level directory. As I understand svn:externals it sets the
particular subdirectory to point to a particular repository path for all
users.

Here is the practical case with which I am working. First, for whatever
reason, in my place of work we are using svnserve rather than httpd, so we
do not have the fine-grained access control which httpd provides per
repository path. I want to be able to check out from a repository path and
then, for a particular subdirectory of the local directory to which I check
out my files, switch to a repository path on another machine based on the
user. This is all being done programatically ( Pysvn ).

Why do we need to do this ? Because we need to provide access to specific
files of the same name in a subdirectory based on the user. So if I have a
subdirectory called 'conf' and a file called 'topsecret', I want user A to
get 'topsecret' from a path on repository X and user B to get 'topsecret'
from a path on repository Y. In no instance should user A and user B be able
to access files on a repository for which they do not have permission.

The only way I can think of doing this is that after the initial checkout,
remove the .svn directory in 'conf' and then do a checkout from the correct
path in the second repository. Given that this can practically be done I
hope that when updates and commits are done recursively from the original
top-level checkout directory that svn is mart enough to work with two
different repositories at the same time.

"Lee Merrill" <LeeMerrill@bustech.com> wrote in message
news:413E2A42.6050804@bustech.com...
> Hi Edward,
> I expect you probably would want to use the "svn:externals" property
> for that, and this doesn't remove files:
>
> http://svnbook.red-bean.com/svnbook/ch07s03.html
>
> Lee
>
> >Can I check out files from a repository path which already contain files
> >checked out from a different repository path ?
> >
> >Does my .svn then point to the new repostory ?
> >
> >Are the files from the first repository path deleted locally before the
new
> >checkout is done ?
> >
> >
> >
>
>
> --
> +=========================================================
> + Lee Merrill lee@bustech.com 919-866-2008
> +=========================================================
>
> Unless otherwise stated, any views presented in this email are solely
those of the author and do not necessarily represent those of the company.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 8 17:11:10 2004

This is an archived mail posted to the Subversion Users mailing list.