[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 18, 2009 at 02:19:44PM -0500, Olemis Lang wrote: On Fri, Sep 18, 2009 at 1:58 PM, Jeff Hammel jham...@openplans.org wrote: On Thu, Sep 17, 2009 at 02:53:56PM -0500, Olemis Lang wrote: On Tue, Sep 15, 2009 at 3:04 PM, Jeff Hammel jham...@openplans.org wrote: On Tue, Sep 15, 2009 at 03:01:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. - Does the plugin work if installed inside plugins dir packaged as EGG file? I highly doubt it. I never do this and wish that Trac didn't allow this, actually. Again, if you can make this work, without breaking the normal use case, I'd be happy to include. Well I did all this (global install), hook setup by hand , it still doesn't work . What I did : [...] Any suggestions ? No, I'm mystified. I haven't seen this behaviour before. Well, then seems there's no hope :( Ticket, maybe? /me thinking what could be wrong with d ticket ? could it be that repos hook are not really executing the plugin's script ? how could I check that ? What I do is run the command given in the post-commit hook by hand and check the output. If that doesn't work, I would throw in a pdb. I don't know how I could reproduce, though. Cant help u here so far, let's c what I can find in the next days. Is this on unix or windows? I've only tried unix. Yes I know, in this case is Mr Windows 2k3 (should I upgrade to Vista ? XD ) . Can't advise you there. I don't know windows and haven't tested the plugin on windows. I just asked because perhaps somebody had experienced something like that , but it doesn't seem so ... it's a shame: plug-in seems to be great :( :( -- Regards, Olemis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Thu, Sep 17, 2009 at 02:53:56PM -0500, Olemis Lang wrote: On Tue, Sep 15, 2009 at 3:04 PM, Jeff Hammel jham...@openplans.org wrote: On Tue, Sep 15, 2009 at 03:01:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. - Does the plugin work if installed inside plugins dir packaged as EGG file? I highly doubt it. I never do this and wish that Trac didn't allow this, actually. Again, if you can make this work, without breaking the normal use case, I'd be happy to include. Well I did all this (global install), hook setup by hand , it still doesn't work . What I did : - Global install of RevHookSys - Enable post-commit hook via web admin - Hook written and copied under repos' hook folder - Commit several times with `close` in log msg - Nothing happens. - Copy the command line statement in the hook. - Specify real rev number - Execute specifying inocuous (no msg) rev number - Command executed ok - Execute with latest rev number - The command gets blocked (15 min and it never ends) - Nothing's reported in trac.log - ... but on accessing the ticket it 's closed with expected msg . Any suggestions ? No, I'm mystified. I haven't seen this behaviour before. Ticket, maybe? I don't know how I could reproduce, though. Is this on unix or windows? I've only tried unix. Jeff -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: ¿Quiénes somos realmente? - http://feedproxy.google.com/~r/simelo-es/~3/qNYfwaHMEm0/quienes-somos-realmente.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 18, 2009 at 1:58 PM, Jeff Hammel jham...@openplans.org wrote: On Thu, Sep 17, 2009 at 02:53:56PM -0500, Olemis Lang wrote: On Tue, Sep 15, 2009 at 3:04 PM, Jeff Hammel jham...@openplans.org wrote: On Tue, Sep 15, 2009 at 03:01:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. - Does the plugin work if installed inside plugins dir packaged as EGG file? I highly doubt it. I never do this and wish that Trac didn't allow this, actually. Again, if you can make this work, without breaking the normal use case, I'd be happy to include. Well I did all this (global install), hook setup by hand , it still doesn't work . What I did : [...] Any suggestions ? No, I'm mystified. I haven't seen this behaviour before. Well, then seems there's no hope :( Ticket, maybe? /me thinking what could be wrong with d ticket ? could it be that repos hook are not really executing the plugin's script ? how could I check that ? I don't know how I could reproduce, though. Cant help u here so far, let's c what I can find in the next days. Is this on unix or windows? I've only tried unix. Yes I know, in this case is Mr Windows 2k3 (should I upgrade to Vista ? XD ) . I just asked because perhaps somebody had experienced something like that , but it doesn't seem so ... it's a shame: plug-in seems to be great :( -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Solo 12 minutos ... para volver a nacer - http://feedproxy.google.com/~r/simelo-es/~3/L0etLsqDEBI/solo-12-minutos-para-volver-nacer.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Tue, Sep 15, 2009 at 3:04 PM, Jeff Hammel jham...@openplans.org wrote: On Tue, Sep 15, 2009 at 03:01:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. - Does the plugin work if installed inside plugins dir packaged as EGG file? I highly doubt it. I never do this and wish that Trac didn't allow this, actually. Again, if you can make this work, without breaking the normal use case, I'd be happy to include. Well I did all this (global install), hook setup by hand , it still doesn't work . What I did : - Global install of RevHookSys - Enable post-commit hook via web admin - Hook written and copied under repos' hook folder - Commit several times with `close` in log msg - Nothing happens. - Copy the command line statement in the hook. - Specify real rev number - Execute specifying inocuous (no msg) rev number - Command executed ok - Execute with latest rev number - The command gets blocked (15 min and it never ends) - Nothing's reported in trac.log - ... but on accessing the ticket it 's closed with expected msg . Any suggestions ? -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: ¿Quiénes somos realmente? - http://feedproxy.google.com/~r/simelo-es/~3/qNYfwaHMEm0/quienes-somos-realmente.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. Well I did all this. Further things needed in Windows : - Enclose paths between quotes - Does the plugin work if installed inside plugins dir packaged as EGG file? -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Solo 12 minutos ... para volver a nacer - http://feedproxy.google.com/~r/simelo-es/~3/L0etLsqDEBI/solo-12-minutos-para-volver-nacer.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Tue, Sep 15, 2009 at 03:01:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 1:09 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: This is really hard to debug without server access. [...] My actual advice is to write the post-commit-hook file by hand. Well I did all this. Further things needed in Windows : - Enclose paths between quotes Feel free to ticket with a patch. Again, I don't have access to windows so I can't develop or test on it, but as long as your patch doesn't break on UNIX, I'll take youre work that you've done your homework. - Does the plugin work if installed inside plugins dir packaged as EGG file? I highly doubt it. I never do this and wish that Trac didn't allow this, actually. Again, if you can make this work, without breaking the normal use case, I'd be happy to include. -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Solo 12 minutos ... para volver a nacer - http://feedproxy.google.com/~r/simelo-es/~3/L0etLsqDEBI/solo-12-minutos-para-volver-nacer.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 11, 2009 at 10:37 AM, Olemis Lang ole...@gmail.com wrote: Hello ! I'm trying to enable SVN post-commit hook via web admin . Server is Win2k3 + py 2.5 + trac 0.11.1 I'm using repositoryhooksystem 0.1.1 . No matter how hard I click on enable check box, the hook's never enabled and the checkbox remains unchecked after the HTTP response is sent back to my browser. Nothing is reported in the log file and I can browse the source code , and so on (so should not be a problem with VCS connector or repos setup ;o) Well there's something odd in here . I'm using Apache and post-commit hook looks like : {{{ #!/bin/bash # trac repository hook system C:\Program Files\Apache\2.2\bin\httpd.exe e:\path\to\env\plugins\repositoryhooksystem-0.1.1-py2.5.egg\repository_hook_system\listener.py -p E:\path\to\env --hook post-commit $2 }}} I tried to change it like {{{ #!/bin/bash # trac repository hook system C:\Program Files\Python\2.5\python.exe e:\path\to\env\plugins\repositoryhooksystem-0.1.1-py2.5.egg\repository_hook_system\listener.py -p E:\path\to\env --hook post-commit $2 }}} however, after trying to apply changes , the file is rebuilt automatically and replaces Python by Apache once again. gggrr ... Looking forward to your comments | suggestions ! -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Introducción a la API de Google Analytics - http://feedproxy.google.com/~r/simelo-es/~3/iRzT5_lZg4c/introduccion-la-api-de-google-analytics.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: Hello ! I'm trying to enable SVN post-commit hook via web admin . Server is Win2k3 + py 2.5 + trac 0.11.1 I'm using repositoryhooksystem 0.1.1 . No matter how hard I click on enable check box, the hook's never enabled and the checkbox remains unchecked after the HTTP response is sent back to my browser. Click harder ;) Nothing is reported in the log file and I can browse the source code , and so on (so should not be a problem with VCS connector or repos setup ;o) Besides TicketChanger is enabled and active but this feature doesn't work (but I suppose that's a consequence of the previous issue : how could it work if hooks are not setup ?). Does anybody has a clue ? What's happenning ? What's (could be) wrong ? Thnx in advance ! -- Regards, Olemis. This is really hard to debug without server access. Essentially, it probably comes from the fact that what this plugin is trying to do (parse the post-commit-hook file, check for FS permissions, etc) is pretty hard to do programmatically. My actual advice is to write the post-commit-hook file by hand. As far as your subsequent apache issue, I haven't a clue, sorry. Jeff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: Hello ! I'm trying to enable SVN post-commit hook via web admin . Server is Win2k3 + py 2.5 + trac 0.11.1 I'm using repositoryhooksystem 0.1.1 . No matter how hard I click on enable check box, the hook's never enabled and the checkbox remains unchecked after the HTTP response is sent back to my browser. Click harder ;) I did use a big hammer ! Smash those mice up !:P Nothing is reported in the log file and I can browse the source code , and so on (so should not be a problem with VCS connector or repos setup ;o) Besides TicketChanger is enabled and active but this feature doesn't work (but I suppose that's a consequence of the previous issue : how could it work if hooks are not setup ?). Does anybody has a clue ? What's happenning ? What's (could be) wrong ? Thnx in advance ! This is really hard to debug without server access. Essentially, it probably comes from the fact that what this plugin is trying to do (parse the post-commit-hook file, Empty check for FS permissions, Well I already fixed that - it seems to fail in Windows (mknod's missing ;o). etc) is pretty hard to do programmatically. The SVN impl, yes . My actual advice is to write the post-commit-hook file by hand. Could be, but : I know nothing about the activation step (i.e. the hook-enabled condition) . Does anybody know what to do in order to make the plugin believe that it did enable the post-commit hook ? As far as your subsequent apache issue, I haven't a clue, sorry. Well the fact is that the plugin uses `sys.executable` in order to form the string for the repos hook . If using `tracd` this should be python exec, but when using Apache + Windows it's `httpd.exe` . That's something that has to be fixed ;o) Thnx . -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Introducción a la API de Google Analytics - http://feedproxy.google.com/~r/simelo-es/~3/iRzT5_lZg4c/introduccion-la-api-de-google-analytics.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Can't enable post-commit hook using repositoryhooksystem 0.1.1
On Fri, Sep 11, 2009 at 12:59:21PM -0500, Olemis Lang wrote: On Fri, Sep 11, 2009 at 12:38 PM, Jeff Hammel jham...@openplans.org wrote: On Fri, Sep 11, 2009 at 10:37:13AM -0500, Olemis Lang wrote: Hello ! I'm trying to enable SVN post-commit hook via web admin . Server is Win2k3 + py 2.5 + trac 0.11.1 I'm using repositoryhooksystem 0.1.1 . No matter how hard I click on enable check box, the hook's never enabled and the checkbox remains unchecked after the HTTP response is sent back to my browser. Click harder ;) I did use a big hammer ! Smash those mice up !:P Nothing is reported in the log file and I can browse the source code , and so on (so should not be a problem with VCS connector or repos setup ;o) Besides TicketChanger is enabled and active but this feature doesn't work (but I suppose that's a consequence of the previous issue : how could it work if hooks are not setup ?). Does anybody has a clue ? What's happenning ? What's (could be) wrong ? Thnx in advance ! This is really hard to debug without server access. Essentially, it probably comes from the fact that what this plugin is trying to do (parse the post-commit-hook file, Empty check for FS permissions, Well I already fixed that - it seems to fail in Windows (mknod's missing ;o). Yeah, I not only don't know windows but don't even have access to a windows machine. So you might guess my plugins are not tested there. etc) is pretty hard to do programmatically. The SVN impl, yes . My actual advice is to write the post-commit-hook file by hand. Could be, but : I know nothing about the activation step (i.e. the hook-enabled condition) . Does anybody know what to do in order to make the plugin believe that it did enable the post-commit hook ? The checkbox for enabled and all associated checks shouldn't affect the plugin logic. That is, if the commit hook is written correctly, whether the checkbox says enabled or not, the plugin should work. I have had to deal with this even on unix. Probably should be noted on the wiki. As far as your subsequent apache issue, I haven't a clue, sorry. Well the fact is that the plugin uses `sys.executable` in order to form the string for the repos hook . If using `tracd` this should be python exec, but when using Apache + Windows it's `httpd.exe` . That's something that has to be fixed ;o) I agree. I'll do it when I can, though I generally only get to work on plugins that my company wants today, sadly :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---