Working Copy on Network / Usage of multiple users

2012-12-27 Thread Karl Heinz Marbaise

Hi,

i just want to check my assumption by the user/dev community.

I have the following scenario.

From a central SVN server there should be done checkouts (different 
working copies) on a network drive.
The working copies will be accessed from different users which means a 
thing like this:


Network: working-copy-1
User 1 accesses working-copy-1 and changes some files and will checkin 
those changes.


User 2 accesses working-copy-1 and changes some files and will checkin 
those changes.

etc.

My knowledge is that if those accesses to the above working copy can be 
handled strictly sequential it might work but i'm not 100% sure..(may be 
someone can give more detailed informations)..


Apart from that I expect failures if a working copy will be accessed in 
parallel from different users at the same time on the network based on 
the pristine-copy information and other meta-data which is stored in the 
.svn folder (SQLite database etc.).


Can someone give more detailed information if the above assumption is 
right or wrong ? I assume it's right...


Many thanks in advance.
Kind regards
Karl-Heinz Marbaise
--
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl-Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de


Re: Working Copy on Network / Usage of multiple users

2012-12-27 Thread olli hauer
On 2012-12-27 16:03, Karl Heinz Marbaise wrote:
 Hi,
 
 i just want to check my assumption by the user/dev community.
 
 I have the following scenario.
 
 From a central SVN server there should be done checkouts (different working 
 copies) on a network drive.
 The working copies will be accessed from different users which means a thing 
 like this:
 
 Network: working-copy-1
 User 1 accesses working-copy-1 and changes some files and will checkin those 
 changes.
 
 User 2 accesses working-copy-1 and changes some files and will checkin those 
 changes.
 etc.
 
 My knowledge is that if those accesses to the above working copy can be 
 handled strictly sequential it might work but i'm not 100% sure..(may be 
 someone can give more detailed informations)..
 
 Apart from that I expect failures if a working copy will be accessed in 
 parallel from different users at the same time on the network based on the 
 pristine-copy information and other meta-data which is stored in the .svn 
 folder (SQLite database etc.).
 
 Can someone give more detailed information if the above assumption is right 
 or wrong ? I assume it's right...
 
 Many thanks in advance.
 Kind regards
 Karl-Heinz Marbaise

I'm not sure if I got your scenarios right ...
- the working-copy-1 is located on a network share which is mounted by other 
users in read/write mode
- user 1 - user N has mounted the working copy and modifies files there, so 
this changes are direct transparent to all others without svn update
- user 2  -- same as user 1 --

My question for this scenario is then more in the direction from which location 
in the working copy will user1/2 commit/update?
Or is someone the svn master who updates/commits the changes?

About the wc.db, even on a network share the database should be locked 
exclusive for write, so no other can do update/commits at the same time.
I expect for this scenario more failures in the way how a single file will be 
locked during the work (two users are working on the same file, in worst case 
with notepad that does not lock the file and does not recognize changes)


--
Regards,
olli


Re: Working Copy on Network / Usage of multiple users

2012-12-27 Thread Daniel Shahaf
Karl Heinz Marbaise wrote on Thu, Dec 27, 2012 at 16:03:55 +0100:
 Network: working-copy-1
 User 1 accesses working-copy-1 and changes some files and will checkin  
 those changes.

 User 2 accesses working-copy-1 and changes some files and will checkin  
 those changes.
 etc.

 My knowledge is that if those accesses to the above working copy can be  
 handled strictly sequential it might work but i'm not 100% sure..(may be  
 someone can give more detailed informations)..


You'll need to think about permissions: when wc.db is rewritten, or
a new .svn/pristine/ file created, would user2 have permissions to
replace or unlink it (respectively)?

Authz would be a concern too, if the two users' read accesses differ.
(the code should DTRT --- it's no different than the server revoking
some read access in a one-user scenario)

 Can someone give more detailed information if the above assumption is  
 right or wrong ? I assume it's right...

Have you considered other solutions?  For example, the ASF CMS maintains
one working copy per project, and uses zfs copy-on-write clones to fork
off a per-user working copy for each user (even concurrent users) who
works on that working copy.

https://svn.apache.org/repos/infra/websites/cms/webgui/lib/ASF/CMS.pm