Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Subversion server questions

  • 10-08-2009 10:24PM
    #1
    Posts: 1,462 ✭✭✭


    Hi All,

    I have set up subversion and access to it is via WebDAV. The OS is Ubuntu 8.04 server.

    I created the repo with svnadmin create at /usr/local/svn/repo and then places my project in there. I created branches, tags and trunk and then did an svn import to bring them in. This all works fine.

    I can do everything that is expected via the web interface but one thing is puzzling me. When I go to the actual repo location at /usr/local/svn/repo/project/trunk I see no files even though I can see them when browsing the repository via the web interface.

    There are files corresponding to the revisions in the repo:
    barry@<server>:/usr/local/svn/repo/db/revs$ ls -l
    total 92
    -rw-r--r-- 1 www-data www-data   115 Aug  4 17:13 0
    -rw-r--r-- 1 www-data www-data 51506 Aug  4 22:53 1
    -rw-r--r-- 1 www-data www-data   198 Aug  4 22:57 2
    -rw-r--r-- 1 www-data www-data   862 Aug  4 23:00 3
    -rw-r--r-- 1 www-data www-data  4260 Aug  5 13:08 4
    -rw-r--r-- 1 www-data www-data  1545 Aug  5 13:22 5
    -rw-r--r-- 1 www-data www-data  1889 Aug  5 13:31 6
    -rw-r--r-- 1 www-data www-data  1330 Aug  5 13:35 7
    -rw-r--r-- 1 www-data www-data   890 Aug 10 21:55 8
    

    The config in apache is:
    <Location /svn>
      DAV svn
      SVNPath /usr/local/svn/repo
      AuthType Basic
      AuthName "SVN"
      AuthUserFile /etc/subversion/passwd
      Require valid-user
    </Location>
    

    The authentication is working fine when I browse or commit and the repo itself has the same owner / group as the user the webserver is running with.

    Am I missing some face palmingly obvious or something else? Many thanks for any help.


Comments

  • Registered Users, Registered Users 2 Posts: 354 ✭✭AndrewMc


    That's just how it works :)

    All the contents of an FSFS repository are stored in those numbered files. It doesn't store a full copy of each version of each file one-by-one, but each numbered file contains the changes made in that commit. When you checkout a file, it works through the changesets (it has some shortcuts, obviously!) and builds the latest copy of the file. The only way to navigate a repository is to either checkout specific versions, or use something like svnshell.


  • Posts: 1,462 ✭✭✭ [Deleted User]


    Thanks AndrewMc :). I "discovered" svn list last night and found out that it shows me what is there too. I just couldn't help feeling I had done something wrong but thanks for clearing it up.


Advertisement