sftp & normal locks currently unsafe?

John A Meinel john at arbash-meinel.com
Fri Dec 23 02:25:53 GMT 2005


Robert Collins wrote:
> If I read the code right, I can lock a branch normally and via sftp at
> the same time ?
> 
> Rob

Correct.
We have to use O_EXCL on sftp, because we don't have access to os native
locks.

But locally, we didn't want to worry about leaving lock files around.
Martin had thought about the idea of doing 'lowest common denominator',
which meant O_EXCL, and possibly having lockfiles left around.

Mostly, I just wanted to get something which prevented the common case
of 2 people trying to push to a remote branch.

I've known about the problem, and I believe I've even mentioned it a
couple of times.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051222/f6921788/attachment.pgp 


More information about the bazaar mailing list