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

RE: excluding a file or directory from svn server

From: Lakshman Srilakshmanan <lakshman.srilakshmanan_at_tradingpost.com.au>
Date: 2006-09-22 06:38:28 CEST

Hi Muthu,

I don't think it is possible to stop people from using "svn add". Svn
add runs on your local machine (clients) and the hooks are on your
server.

But having said that, why can't the users "svn revert" the excluded
directory before committing again ? If you svn revert the excluded
directory then it would not form part of the next commit.

Thanks
Lakshman

> -----Original Message-----
> From: Muthu [mailto:cmuthu@naturesoft.net]
> Sent: Friday, 22 September 2006 2:23 PM
> To: users@subversion.tigris.org
> Cc: Lakshman Srilakshmanan
> Subject: Re: excluding a file or directory from svn server
>
> Hi,
>
> Thank you for your clue. I have placed "/usr/bin/svnlook changed -t
> "$TXN" "$REPOS" | /bin/grep -v "/test/" > /dev/null || exit 1" in
> pre-commit to exclude commit for "test" folder. It works for me. In
this
> case users are able execute the "svn add" command successfully. Can I
> block somehow "svn add" for a particular folder.Is there any way to do
> that.
>
> The reason why I am asking is, If a person try to add the excluded
> folder, it is getting added and gives error when he tries to commit.
> After that the user is not able to commit from the top folder.
>
> Thanks,
> Muthu.
> > Hi Muthu,
> >
> > I don't have experience with 1.2.0 but in 1.3.x you can write a
> > pre-commit hook to check and reject any unwanted commits.
> >
> > Thanks
> > Lakshman
> >
> >
> >> -----Original Message-----
> >> From: Muthu [mailto:cmuthu@naturesoft.net]
> >> Sent: Wednesday, 20 September 2006 2:08 PM
> >> To: users@subversion.tigris.org
> >> Cc: Lieven Govaerts
> >> Subject: Re: excluding a file or directory from svn server
> >>
> >>
> >>> Muthu wrote:
> >>>> Hi,
> >>>>
> >>>> I am using subversion 1.2.0. How do I exclude a file or
> >>>> directory for a particular project by configuring in the svn
server
> >>>> side?.Can somebody give me a idea.
> >>>>
> >>>> Thanks,
> >>>> Muthu.
> >>>>
> >>> Exclude from what, can you be a bit more specific? Are you talking
> >>> about commit, checkout, delete?
> >>>
> >>> Lieven.
> >>>
> >>>
> >> Yes. I am taking about all the svn operations (svn commit or
checkout
> > or
> >> add or delete).
> >>
> >> I have a directory called bin in the project. I don't want any
people
> > to
> >> commit or add this folder in to the svn server.
> >>
> >> thanks,
> >> Muthu.
> >>
> >>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> >> For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 22 07:43:57 2006

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.