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

Re: Locking: RFC: svn:needs-lock behaviors (Updated)

From: Brian W. Fitzpatrick <fitz_at_collab.net>
Date: 2005-02-02 23:15:41 CET

On Wed, 2005-02-02 at 16:09, Mark Phippard wrote:
> "Brian W. Fitzpatrick" <fitz@collab.net> wrote on 02/02/2005 05:05:53 PM:
>
> > On Wed, 2005-02-02 at 16:00, Mark Phippard wrote:
> > > "Brian W. Fitzpatrick" <fitz@collab.net> wrote on 02/02/2005 04:53:37
> PM:
> > >
> > > [snip]
> > >
> > > > Propset:
> > > > - Setting the svn:needs-lock property sets the file to read-only
> > > > (It also canonicalizes the value to '*')
> > >
> > > Before setting the file to read-only, shouldn't it check to see if it
> is
> > > locally modified?
> >
> > Hmm. I'm not sure about that--if the prop is set, and the user has
> > local mods, isn't it safe to assume that the user is doing it
> > intentionally?
>
> Sure, but if I am editing the file, as indicated by the local mods,
> doesn't it stand to reason that I would not want the file to be made
> read-only until I commit? In your scenario, are you assuming that after
> running svn propset, I would have to run svn lock to make the file
> read-write before I commit?

Well, you *did* just set a property named "needs-lock" on the file. I
would assume that that means that the file needs to be locked before
committing, wouldn't you? :-)

Kidding aside, I think that flipping the file to read-only right away
really is the right thing to do here.

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 2 23:17:50 2005

This is an archived mail posted to the Subversion Dev mailing list.