Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should go through the first few chapters of the Subversion online reference over at <a href="http://svnbook.com" rel="nofollow">http://svnbook.com</a>. This will give you a quick and good start on both version control and Subversion.</p> <p>What you're doing is pretty close to the way Subversion works. Do you have those directories yet?</p> <p>In standard a Subversion setup, you setup a "tags", "branches", and "trunk" directory. Some people set these up on the root of their repository, others set them up under the root of each project.</p> <p>For example:</p> <pre><code>svn://svn/trunk/proj1 svn://svn/trunk/proj2 svn://svn/branches/proj1/1.2 svn://svn/branches/proj2/3.4 </code></pre> <p>or </p> <pre><code>svn://svn/proj1/trunk svn://svn/proj2/trunk svn://svn/proj1/branches/1.2 svn://svn/proj2/branches/3.4 </code></pre> <p>Most sites I've seen do it the last way, but there can be advantages of doing it the first way (mainly due to using <code>svn:externals</code> and the fact when you do a checkout, your checkout isn't called <code>trunk</code> by default).</p> <p>All you need to do is call your "old-versions" directory <code>tags</code> and you're all set:</p> <pre><code>svn://svn/UI/tags/1.0 svn://svn/UI/tags/2.0 svn://svn/UI/tags/2.5 svn://svn/UI/trunk </code></pre> <p>If you forgot to make the tag, panic ye not! One of the great things about Subversion is the revision number of the repository. It's sort of like making a tag every time you do a commit. If you can find the revision number when you did a release (usually through looking at the <code>svn log</code>) you can then copy that revision to create your tag:</p> <pre><code>$ svn cp -r1234 svn://svn/UI/trunk svn://svn/UI/tags/2.0 </code></pre> <p>As you can see, you use the <code>svn cp</code> command to create tags and branches. By the way, it's very easy to modify a tag without realizing it. In most sites, they have a pre-commit hook which either can prevent most users in making commits under the tags directory (this means you have to create the tags) or they allow users to create a tag (via <code>svn cp</code>) but not let users modify a tag once it is created. I have a Perl version of a pre-commit hook at <a href="http://dl.dropbox.com/u/433257/new_svn_hooks.zip" rel="nofollow">http://dl.dropbox.com/u/433257/new_svn_hooks.zip</a> if you want to take a look at it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload