Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > RE: commit desing based on wc-ng

subversion
Discussion topic

Back to topic list

RE: commit desing based on wc-ng

Author gbjbaanb
Full name Andy Bolstridge
Date 2009-08-04 03:09:48 PDT
Message My suggestion is to keep it real simple. Simple is good.

If multiple locking is needed, perhaps the simplest solution there is to lock all WCs according to the repository path - if a lock is held on a directory, you cannot lock on a subdir; but you can create a new lock for an unrelated directory.

eg.

repo has:
  trunk/project1/subdirA

someone commits to project1, and they then try to add to subdirA whilst the commit is in-progress. This will block as subdirA is part of the lock path. (a simple comparison of the paths should be sufficient to detect this).

If they try to add to project2 however, this is fine - a new lock is created for that operation.

This doesn't solve the problem if a user has a WC embedded inside another WC - eg, they have subdirA/test/Project2 checked out. But I'd argue that this situation isn't a very common one, and isn't good practice. The worst that happens is that the unrelated embedded WC is locked for the duration of other operations.

« Previous message in topic | 2 of 4 | Next message in topic »

Messages

Show all messages in topic

commit desing based on wc-ng yellowflying HuiHuang 2009-07-29 02:37:49 PDT
     RE: commit desing based on wc-ng gbjbaanb Andy Bolstridge 2009-08-04 03:09:48 PDT
         Re: commit desing based on wc-ng stsp Stefan Sperling 2009-08-04 03:31:18 PDT
             RE: commit desing based on wc-ng rhuijben Bert Huijben 2009-08-04 04:08:53 PDT
Messages per page: