Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have a <a href="https://github.com/qazwart/SVN-Watcher-Hook" rel="nofollow">post-commit hook on github</a> that does exactly this, and it allows the users (instead of the administrator to say what files they're watching for changes, and what email addresses these changes should be sent to.</p> <p>You can combine this with my <a href="https://github.com/qazwart/SVN-Precommit-Kitchen-Sink-Hook" rel="nofollow">pre-commit-kitchen-sink hook</a> to make sure that users can only edit their own watch files. The hook scripts use Perl, but they don't require any non-standard modules, so they're pretty easy to use.</p> <p>Each user gets their own watch file, the syntax is pretty easy:</p> <pre><code>mail = david@gmail.com file =**/build.xml match = [Mm]akefile </code></pre> <p>The <code>mail</code> line is where I want to email the notice. I can have multiple ones. The <code>file</code> is a glob expression (anchored at the front and back of the expression) of what files I'm watching. The <code>match</code> line is similar, and uses a Perl regular expression which is unanchored.</p> <p>The watch files are stored in the Subversion repository in a directory you specify. This means that the users can set their own watches. You can use my pre-commit-kitchen-sink hook to prevent users from changing other users' watch files:</p> <pre><code>[file You are only allowed to change their own watch files] file =/watchfiles/** permission = read-only users = @ALL [file You are only allowed to change their own watch files] file = /watchfiles/&lt;USER&gt;.cfg permission = read-write users = @ALL </code></pre> <p>The <code>&lt;USER&gt;</code> string is interpreted as the user's ID.</p> <hr> <h3>Example</h3> <blockquote> <p>If I want to set post commit hook to more than one files, so can I set? like file = ab/build.xml, bb/cs.txt, cc/<em>.</em> etc I want notification by email of these files only</p> </blockquote> <p>You can put a line in for each pattern:</p> <pre><code> email = my@email.com file = **/ab/build.xml file = **/bb/cs.txt file = **/cc/*.* </code></pre> <p>Remember that <code>file</code> glob pattern is anchored to the root of the repository (using <code>/</code> as the root) so you need to specify the full path, or use the <code>**/</code> to specify any path to that file.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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