svn.html 4.82 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
   $title = "VideoLAN - Subversion repository";

<h1>Subversion repository</h1>

<h2>Basic information</h2>

<p>As of late, VideoLAN is migrating all it's CVS repositories to <a href="">Subversion</a> repositories. Subversion (SVN) was built
to be like CVS, but without many of it's faults. This could only be done by
breaking backwards compatibility with CVS. It will be a bit painful at first
for some people but will pay of big time in the end. Currently there are scripts
in place that will keep our <a href="cvs.html">old CVS repositories</a> available
to anonymous CVS users. All developers have to use SVN though. If you had a CVS account
before, but no SVN account yet, then mail the <a href="">
Developer Mailinglist</a>.

Derk-Jan Hartman's avatar
Derk-Jan Hartman committed
<p>The SVN server is called
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
For instance to retrieve the HEAD vlc source: </p>

svn co svn:// vlc-trunk

<p>In case you do not have access to the repository for some reason, or if you are
plain lazy, you can download nightly development snapshots (source and binary). See the bottom of the page

<h2>Available modules</h2>

  <li><b>svn://</b>: VideoLAN Client; </li>
  <li><b>svn://</b>: VideoLAN Server; </li>
  <li><b>svn://</b>: library for decoding DTS audio. </li>
  <li><b>svn://</b>: library for decrypting DVDs, used by VLC and VLS. </li>
  <li><b>svn://</b>: library for DVD navigation, used by VLC. </li>
  <li><b>svn://</b>: library for parsing Program Specific Information
from MPEG and DVB streams, used by VLC and VLS. </li>


<p>There is no webinterface to the SVN repositories yet. You can <a href="">browse the
CVS repository</a> which is being kept in sync with SVN. </p>

<h2>Development tarball snapshots</h2>

<p>If you have trouble using SVN, you can use our <a
href="">daily VLC Development
snapshots</a>. </p>

<h2>VLC nightly builds</h2>

<p>We have <a href="">nightly builds</a> of VLC for Windows and Debian Woody</p>

<h2>Write access policy</h2>

<p> As usual in opensource projects, you get write access to the CVS
repository when you have shown your skills and ability to write good
patches :) </p>

Derk-Jan Hartman's avatar
Derk-Jan Hartman committed
<h2>Useful SVN tips</h2>
67 68 69

Here are some SVN usage tips by Sam Hocevar
Derk-Jan Hartman's avatar
Derk-Jan Hartman committed
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

<p><b>Repository layout</b></p>

   There are three directories at the root of a SVN repository: trunk, branches, tags. The
trunk directory is similar to the HEAD branch in CVS: it contains the
most recent vlc tree. The branches and tags directories contains copies
of the trunk at different times.</p>

   Never download a full svn tree! It would download several hundreds of
megabytes. Instead, only get the trunk directory, like that:
    $ svn co svn:// vlc-trunk
   If you need a specific branch or tag, (eg. branch 0.2), use this:
    $ svn co svn:// vlc-0.2
   If you need to know which branches are available, use "svn ls":
    $ svn ls svn://
Derk-Jan Hartman's avatar
Derk-Jan Hartman committed
Note that you only need to authenticate yourself when you want to commit something. You do not need to enter a password when you checkout the sources.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150

<p><b>Moving files</b></p>
   No longer create new files from scratch when moving files! Use "svn mv":
    $ svn mv file1 file2
   It also works for entire directories.

<p><b>Splitting files</b></p>
   Do not create a new file from scratch! Instead, copy the old file
using "svn cp", remove the old file and modify both newly created files:
    $ svn cp old new1
    $ svn cp old new2
    $ svn delete old
    [edit new1 and new2]
    $ svn commit

<p><b>Getting information about locally modified files</b></p>
   Use "svn status" to know which files were modified, deleted or
created. A network connection is not needed for that, do not use "svn
update" just to know your local modifications.
   "svn diff" does not require a network connection either if you only
want to show your local modifications.


   There is no filesystem equivalent to .cvsignore. Instead, metadata
are used. To edit the ignore list for a given directory, use this:
    $ svn propedit svn:ignore mydirectory

   $Id is no longer automatically taken in account; instead, it has to
be activated in a per-file basis using properties:
    $ svn propedit svn:keywords myfile
   Just add "Id" to the list of properties.