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

Re: hide projects in svn

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-08-30 22:36:07 CEST

On Aug 30, 2007, at 10:38, Hari Kodungallur wrote:

> On 8/30/07, Daniel Blendea <bdaniel7@gmail.com> wrote:
>
>> Is it possible to hide one or more projects in svn?
>>
>> The projects will continue to be in the repository but not visible to
>> a user or group of users or all users.
>>
>> The reason for this is that some projects in my company "take a
>> break"
>> and i would prefer not to show them, neither in browser nor in tsvn.
>>
>> If this feature is not there now, wouldn't be a nice one to have?
>
> AFAIK, there is no easy way to do it. As Greg mentioned you could
> delete it now and reverse merge it when you actually need it.
>
> That said, I am not sure why you want to totally hide a project
> just because it is "taking a break". You could continue to keep it
> in the repository, and may be add a post-commit hook to disallow
> write access to that directory, so that no one accidentally writes
> to it. My 2c.

You could create a new top-level directory "suspended" or "on-hiatus"
or "old" and then "svn mv" all those projects which are not currently
being worked on into that directory. This is better than "svn rm"ing
the project because it's easier to recover them later -- just "svn
mv" them back where they came from. (If you "svn rm" it, you have to
remember what revision you deleted it at in order to restore it later.)

Optionally, if you require it, you could configure it so that normal
users do not have access to the contents of this directory,
effectively hiding those projects. Now people would be aware that
there are old projects, but not which old projects there are because
they can't get into that directory.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Aug 30 22:34:45 2007

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.