You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Matheus Leite <ma...@longadata.com> on 2006/07/11 13:40:34 UTC

Server-side ignore

I would like to ignore certain files and folders (e.g., "/target") on
every existing and future project on my repository. I know I can tell
everyone on my team to use local properties but I am afraid someone
will eventually forget and commit an unwanted file or folder.

Is there a way to configure this on the server? What is the correct approach?

Thanks in advance,

Matheus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Server-side ignore

Posted by Erik Huelsmann <eh...@gmail.com>.
On 7/12/06, Matheus Leite <ma...@longadata.com> wrote:
> Thanks for your response. I read the hook section in the svn book, and
> it warns to not modify the transaction. Does this mean that, instead
> of having the server ignore certain files and folders matching a
> pre-defined pattern, the correct approach would be to cancel the
> transaction and tell the user he must set the svn:ignore property
> himself?

That, or tell him he's committing file with names he's not supposed to
commit: svn:ignore only cleans up 'svn status' output, it doesn't
prevent committing the files.

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Server-side ignore

Posted by Matheus Leite <ma...@longadata.com>.
Thanks for your response. I read the hook section in the svn book, and
it warns to not modify the transaction. Does this mean that, instead
of having the server ignore certain files and folders matching a
pre-defined pattern, the correct approach would be to cancel the
transaction and tell the user he must set the svn:ignore property
himself?

Matheus

On 7/11/06, Erik Huelsmann <eh...@gmail.com> wrote:
> On 7/11/06, Matheus Leite <ma...@longadata.com> wrote:
> > I would like to ignore certain files and folders (e.g., "/target") on
> > every existing and future project on my repository. I know I can tell
> > everyone on my team to use local properties but I am afraid someone
> > will eventually forget and commit an unwanted file or folder.
> >
> > Is there a way to configure this on the server? What is the correct approach?
>
> By implementing a pre-commit hook which rejects commits which includes
> those targets. You'll have to install the pre-commit hook in every new
> repository though after you created it.
>
> bye,
>
> Erik.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Server-side ignore

Posted by Erik Huelsmann <eh...@gmail.com>.
On 7/11/06, Matheus Leite <ma...@longadata.com> wrote:
> I would like to ignore certain files and folders (e.g., "/target") on
> every existing and future project on my repository. I know I can tell
> everyone on my team to use local properties but I am afraid someone
> will eventually forget and commit an unwanted file or folder.
>
> Is there a way to configure this on the server? What is the correct approach?

By implementing a pre-commit hook which rejects commits which includes
those targets. You'll have to install the pre-commit hook in every new
repository though after you created it.

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org