tag:help.lighthouseapp.com,2008-09-20:/discussions/questions/301-integration-with-subversion-on-windowsLighthouse: Discussion 2011-04-07T05:35:44Ztag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-06-26T23:53:27Z2009-06-26T23:53:27ZIntegration with Subversion on Windows<div><p>You just need something that can make HTTP calls and post xml or
json. What do you have? Ruby's a good choice and quick install away
:)</p>
<p>Keep in mind, these post-commit hooks go on your subversion
server.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-06-29T17:32:39Z2009-07-02T02:19:03ZIntegration with Subversion on Windows<div><p>Hi, thanks for the reply. I've installed ruby and am working
through issues in the post-commit script related to win vs
linux.</p>
<p>I seem to be stuck at line 27, the error I get is "unexpected
kEND, expecting $end'. I don't really know ruby at all so not sure
what to change.</p>
<p>Does anyone out there know how ruby differs on win enough to
know what I should do?</p>
<p>Thanks.</p></div>Evan McDanieltag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-06-29T17:44:07Z2009-06-29T17:44:07ZIntegration with Subversion on Windows<div><p>Can you post the ruby script that you have at gist.github.com?
That error is a simple ruby parsing error. Be sure to sanitize any
passwords or other sensitive data you might have. I just double
checked the syntax in the <a href=
"http://help.lighthouseapp.com/faqs/api/scm-integration">example
script</a> and it's good, so it might just be a slight error in
translation.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-06-29T18:07:24Z2009-07-02T02:19:03ZIntegration with Subversion on Windows<div><p>Thanks, here's the gist...</p>
<p>git clone git://gist.github.com/137727.git gist-137727</p></div>Evan McDanieltag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-06-29T22:55:26Z2009-06-29T22:55:26ZIntegration with Subversion on Windows<div><p>Line 8 should look like this:</p>
<pre>
<code>SVNLOOK = 'E:\Subversion\bin\svnlook.exe'</code>
</pre>
<p>You used a tilde instead of a single quote there. It's probably
a bit confusing if you're new to ruby/perl, but tildes mark shell
commands. For instance:</p>
<pre>
<code>commit_author = `#{SVNLOOK} author #{repo_path} -r #{revision}`.chop</code>
</pre>
<p>That runs the command "E:\Subversion\bin\svnlook.exe author
/path/to/repo -r 21356" and uses the output of it to set the
commit_author variable.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-07-02T21:46:54Z2009-07-02T21:46:59ZIntegration with Subversion on Windows<div><p>Hi RIck, Thanks for hanging in there with me on this.</p>
<p>So, made some progress to the point where, when I test from the
command line, the hook succeeds. But when I look in the log, I see
this error:</p>
<p>"Error: undefined method 'strip' for nil:NilClass trace:"</p>
<p>Thanks for any help you can offer. I guess after this at least
we'll have a Windows version of the post-commit script to share
:)</p>
<ul>
<li>Evan</li>
</ul></div>Evan McDanieltag:help.lighthouseapp.com,2008-09-20:Comment/2217212009-07-02T22:05:35Z2009-07-02T22:05:35ZIntegration with Subversion on Windows<div><p>Can you show the rest of the log? It'll tell where the error
came from.</p></div>Rick