Note that there are some explanatory texts on larger screens.

plurals
  1. POtrac-past-commit-hook on remote repository
    primarykey
    data
    text
    <p>Trying to set up the svn commit with trac using <a href="http://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook" rel="nofollow noreferrer">this</a> script.</p> <p>It is being called without issue, but the problem is this line here:</p> <pre><code>144 repos = self.env.get_repository() </code></pre> <p>Because I am calling this remotely self.env_get_repository() looks for the repository using the server drive and not the local drive mapping. That is, it is looking for E:/Projects/svn/InfoProj and not Y:/Projects/sv/InfoProj</p> <p>I noticed a <a href="http://trac.edgewall.org/changeset/7964" rel="nofollow noreferrer">changeset</a> on the trac set for being able to call get_repository() and passing in the path as the variable, but it seems this hasn't made it into the latest stable release yet.</p> <p><a href="https://stackoverflow.com/questions/84178/how-do-i-implement-the-post-commit-hook-with-trac-svn-in-a-windows-environment">This version of the script</a> (the one submitted by code monkey) appears to do things differently, but is throwing an error that seems related:</p> <pre><code>154 if url is None: 155 url = self.env.config.get('project', 'url') 156 self.env.href = Href(url) 157 self.env.abs_href = Href(url) </code></pre> <p>Lines 156 / 157 throw error: Warning: TypeError: 'str' object is not callable </p> <p>The <a href="http://trac.edgewall.org/attachment/ticket/1602/trac-post-commit-hook.0.10.3.py" rel="nofollow noreferrer">10.3 stable version</a> of the script throws a completely different error: Warning: NameError: global name 'core' is not defined </p> <p>I'm setting up trac for the first time on a Windows box with a remote repository. I'm using trac 0.11 stable with Python 2.6.</p> <p>I thought there would have been a lot more people out there trying to commit across servers who had come across this problem. I've looked around and couldn't find a solution. I'm supposing Linux has a more graceful way of handling this.</p> <p>Thanks in advance.</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.
 

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