How do you setup a shared Working Copy in Subversion

前端 未结 9 2286
盖世英雄少女心
盖世英雄少女心 2021-02-08 08:04

I still very new using Subversion.

Is it possible to have a working copy on a network available share (c:\\svn\\projects\\website) that everyone (in this case 3 of use)

相关标签:
9条回答
  • 2021-02-08 08:41

    In my experience it will work just fine out of the box. At my company we have had this setup for a number of years and not experienced any problems (outside the obvious ones of having a shared working copy).

    You should however look into having separate working copies and a trigger (hook) that updates the shared location on commits if you need a "live" version of the site.

    0 讨论(0)
  • 2021-02-08 08:43

    You need to use svnserve (light-weight SVN server that comes with SVN) or apache mod.

    With it, you can configure permissions like this:

    [general]
    password-db = userfile
    realm = example realm
    
    # anonymous users can only read the repository
    anon-access = read
    
    # authenticated users can both read and write
    auth-access = write
    
    0 讨论(0)
  • You can't checkout a working copy, a working copy is the term used for code that has already been checked out. If you are asking multiple developers to work with the same set of working files at the same time, then you are seriously undermining one of the main uses of having a version control system, which is to allow your developers to make changes independently of one another without breaking things for anyone else.

    That said, if you really want to do this you can. With a Linux server, the way to go is to have each of your users running a different ssh user agent (for windows machines we use Pagent) with a different ssh identity for each user. Then have the svn server recognize the ssh-tunnels from different identities as being from different users. Unfortunately, I don't know how to set that up in Windows.

    0 讨论(0)
提交回复
热议问题