Hello David,
Yes, the svn:needs-lock for the client worked but I wanted to reinforce
them by putting something in the server side as well
Thanks,
Ignacio
-----Original Message-----
From: Bicking, David (HHoldings, IT)
[mailto:David.Bicking_at_thehartford.com]
Sent: Friday, February 01, 2008 6:09 AM
To: Ryan Schmidt; Lopez, Ignacio
Cc: users_at_subversion.tigris.org
Subject: RE: Re: Pre-commit Hook
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2007b_at_ryandesign.com]
>
> On Jan 31, 2008, at 17:15, ignacio.lopez_at_tektronix.com wrote:
>
> >> If you want to prevent users editing the file without getting the
> >> lock, then set the svn:needs-lock property. As well as enforcing
> >> what your trying to do with a script, it also makes these files
> >> read-only in their working copy until they obtain the lock.
> >
> >
> > Thanks all,
> >
> > I tried both procedures and finally got them working, the pre-commit
> > hook was pretty hard I have to say and it works great with existing
> > files, it requires the user to lock the files before commiting any
> > changes... BUT
> > I just tried to add new files and it wouldn't let me
> because my "new"
> > files are not locked =|... Well they are not under revision
> control
> > so I
> > can not lock them. I also tried creating folders and
> deleting files
> > with
> > the same results...
You didn't say if the needs-lock worked for you or not. If it worked
for you, then you can solve the problem with added files by using
auto-props.
> >
> > Is there a way to distinguish a 'delete file/folder', 'add',
> > 'import' or
> > 'mkdir' transaction from a 'file changed' transaction?
>
> Everything you need should be in the output of "svnlook changed".
> Added items have an "A" at the beginning of the line, so you can
> exclude those. Directories have a slash at the end of the line, so
> you can exclude those.
************************************************************************
*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution
is
strictly prohibited. If you are not the intended recipient, please
notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
************************************************************************
*
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-01 18:01:08 CET