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

Re: Restrict Commit Files Types

From: Jacky Chan <jacky11287_at_gmail.com>
Date: 2007-03-06 11:22:57 CET

Dears,

I am try to write the hook script for pre-commit event, I use svnlook change
to see the files going to commit.
And grep thier name to see is it ends with the certain file type...

But I need to return to the client for the violation, I am writing with bash
shell script.
How can I return the error message to the STDERR? Since the examples in
subversion official site are written in python or perl.

Thank you very much!!

2007/3/6, Matt Sickler <crazyfordynamite@gmail.com>:
>
> The book: http://svnbook.red-bean.org one of the later chapers has the
> stuff on hooks
>
>
> On 3/5/07, Jacky Chan <jacky11287@gmail.com> wrote:
> >
> > Dear Matt,
> >
> > Thank you very much for the reply.
> > Yeap, I am start to take a look at it though, is there any good
> > HOWTO/tutorial to quickly get start?
> >
> > 2007/3/6, Matt Sickler < crazyfordynamite@gmail.com>:
> > >
> > > svn:ignore is only precautionary - it in no way FORCES anything
> > >
> > > if you want to deny certain files from being committed you need a
> > > pre-commit hook that checks for them
> > >
> > > On 3/5/07, Jacky Chan <jacky11287@gmail.com> wrote:
> > > >
> > > > Dears,
> > > >
> > > > I am running SVN with svnserve, and I am considering the approaches
> > > > for setting up the restriction of committing a file.
> > > > In my own experience, by setting up the properties of svn:ignore and
> > > > the global-ignore in .subversion can achieve to goal in the way by setting
> > > > up the ignore list.
> > > > But it seems the ignore list resides in client side, that means user
> > > > can modify the list and so as the properties to again commit the files that
> > > > are set ignore before.
> > > >
> > > > I would like to ask is there any way to set the ignore list on the
> > > > server side? and some other related but indirect way to set the list that
> > > > can restrict user to not commit certain files.
> > > >
> > > > Thank you very much and I am looking forward to your reply.
> > > >
> > > > --
> > > > Yours Sincerely,
> > > > Jacky Chan
> > >
> > >
> > >
> >
> >
> > --
> > Yours Sincerely,
> > Jacky Chan
>
>
>

-- 
Yours Sincerely,
Jacky Chan
Received on Tue Mar 6 11:23:34 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.