Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you just want to browse SharpSvn you can use <a href="http://docs.sharpsvn.net/current/" rel="nofollow noreferrer"><a href="http://docs.sharpsvn.net/" rel="nofollow noreferrer">http://docs.sharpsvn.net/</a></a>. The documentation there is far from complete as the focus is primarily on providing features. Any help on enhancing the documentation (or SharpSvn itself) is welcome ;-)</p> <p>To use log messages for your issue tracker you can use two routes:</p> <ol> <li>A post-commit hook that processes changes one at a time</li> <li>A scheduled service that calls 'svn log -r &lt;last-retrieved&gt;:HEAD' every once in a while.</li> </ol> <p>The last daily builds of SharpSvn have some support for commit hooks, but that part is not really api-stable yet.</p> <p>You could create a post commit hook (post-commit.exe) with:</p> <pre><code>static void Main(string[] args) { SvnHookArguments ha; if (!SvnHookArguments.ParseHookArguments(args, SvnHookType.PostCommit, false, out ha)) { Console.Error.WriteLine("Invalid arguments"); Environment.Exit(1); } using (SvnLookClient cl = new SvnLookClient()) { SvnChangeInfoEventArgs ci; cl.GetChangeInfo(ha.LookOrigin, out ci); // ci contains information on the commit e.g. Console.WriteLine(ci.LogMessage); // Has log message foreach(SvnChangeItem i in ci.ChangedPaths) { // } } } </code></pre> <p>(For a complete solution you would also have to hook the post-revprop-change, as your users might change the log message after the first commit)</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