Alien-SVN
view release on metacpan or search on metacpan
src/subversion/doc/user/svn-best-practices.html view on Meta::CPAN
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Subversion Best Practices</title>
<style type="text/css">
h1 {
text-align: center;
}
</style>
</head>
<body>
<h1>Subversion Best Practices</h1>
<p>This is a quick set of guidelines for making the best use of
Subversion in your day-to-day software development work.</p>
<h2>Use a sane repository layout</h2>
<p>There are many ways to lay out your repository. Because branches
and tags are ordinary directories, you'll need to account for them in
your repository structure.</p>
<p>The Subversion project officially recommends the idea of a "project
root", which represents an anchoring point for a project. A "project
root" contains exactly three subdirectories: <tt>/trunk</tt>,
<tt>/branches</tt>, and <tt>/tags</tt>. A repository may contain
only one project root, or it may contain a number of them.</p>
<p><em>Book reference:</em> <a
href="http://svnbook.red-bean.com/svnbook/ch05s04.html#svn-ch-5-sect-6.1">Choosing
a Repository Layout</a>.</p>
<!-- =================================================== -->
<h2>Commit logical changesets</h2>
<p>When you commit a change to the repository, make sure your change
reflects a single purpose: the fixing of a specific bug, the addition
of a new feature, or some particular task. Your commit will create a
new revision number which can forever be used as a "name" for the
change. You can mention this revision number in bug databases, or use
it as an argument to <tt>svn merge</tt> should you want to undo the
change or port it to another branch.</p>
<p><em>Book reference:</em> "Subversion and Changesets" sidebar,
within <a
href="http://svnbook.red-bean.com/svnbook/ch04s03.html">chapter
4</a>.</p>
<!-- =================================================== -->
<h2>Use the issue-tracker wisely</h2>
<p>Try to create as many two-way links between Subversion changesets
and your issue-tracking database as possible:</p>
<ul>
<li>If possible, refer to a specific issue ID in every commit log message.</li>
<li>When appending information to an issue (to describe progress, or
to close the issue) name the revision number(s) responsible
for the change.</li>
</ul>
<!-- =================================================== -->
( run in 0.873 second using v1.01-cache-2.11-cpan-39bf76dae61 )