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

Re: Locking non-existent paths. Time to discuss.

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-03-17 15:32:35 CET

On Mar 17, 2005, at 3:05 AM, C. Michael Pilato wrote:
>>
>> What *is* needed is the ability to LOCK an unmapped resource. However,
>> it's completely sufficient to implement this by creating an empty
>> placew holder resource.
>
> Well, that's certainly going to make useless a bunch of work I was
> moments away from committing. :-(
>

Ok, then we have a new strategy!

1. make svn_fs_lock and svn_fs_attach_lock refuse to create locks on
nonexistent resources. This is a 2-line change to the libsvn_fs
'switching' routine.

2. make mod_dav_svn check for a path's existence when creating a lock.
If it doesn't exist, do an autoversioning commit of a 0-byte file on
the spot.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 17 15:34:25 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.