This file is indexed.

/usr/share/doc/svn-buildpackage/html/ch02s04.html is in svn-buildpackage 0.8.6.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Using by multiple developers</title><meta name="generator" content="DocBook XSL Stylesheets V1.79.1"><link rel="home" href="index.html" title="svn-buildpackage - maintaining Debian packages with Subversion"><link rel="up" href="ch02.html" title="Chapter 2. Getting started"><link rel="prev" href="ch02s03.html" title="Creating Subversion repository"><link rel="next" href="ch02s05.html" title="SVN over SSH"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Using by multiple developers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Getting started</th><td width="20%" align="right"> <a accesskey="n" href="ch02s05.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="multidev"></a>Using by multiple developers</h2></div></div></div><p>
Multiple developers with local access to the repository may share it
using a common group. To do so, create a new group and add all
developers to it. Run "chgrp -R sharedGroup repdir ; chmod -R g+s
repdir" for the shared group and the repository directory. Now,
on local access to this repository everybody will create files with the
appropriate group setting. However, the developers will need to set a
liberal umask before using <span class="command"><strong>svn</strong></span> (like "0022").
</p><p>
If somebody resists to do so, there is still a brute-force solution:
fix the permissions with a post-commit script. However, this is an
"unsound" solution and may lead to <span class="emphasis"><em>ALL KINDS OF PROBLEMS</em></span>.
<span class="emphasis"><em>MAKE SURE THAT YOU ARE AWARE OF THE POSSIBLE CONSEQUENCES BEFORE
YOU OPEN THE PANDORA BOX</em></span>. See <a class="ulink" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=240630" target="_top">
Debian BTS</a> for details. When you damage your repository, don't
blame me and remember that there is "<span class="command"><strong>svnadmin recover</strong></span>".
</p><div class="example"><a name="idm199"></a><p class="title"><b>Example 2.2. post-commit hook example</b></p><div class="example-contents"><pre class="programlisting">
#!/bin/sh

# POST-COMMIT HOOK
# The following corrects the permissions of the repository files

REPOS="$1"
REV="$2"

chgrp -R sharedGroup $REPOS
# replace sharedGroup with your group
chmod -R g+r $REPOS
chmod -R g+w $REPOS
</pre></div></div><br class="example-break"></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s05.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Creating Subversion repository </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SVN over SSH</td></tr></table></div></body></html>