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