Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

trac-post-commit-hook.py - MySQL (Apache server and Windows)

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


hare23 at gmail

Oct 14, 2009, 7:49 AM

Post #1 of 5 (417 views)
Permalink
trac-post-commit-hook.py - MySQL (Apache server and Windows)

Hello All,

The SVN post-commit-hook provided by trac-edgewall is compatible only
with
sqlite.

Does anyone have experience with MySQL? I am trying to make it work
but not
successful yet.

Please give me answer or some pointers. I tried googling but no use.

kind regards, hare

--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


hyugaricdeau at gmail

Oct 15, 2009, 12:15 PM

Post #2 of 5 (380 views)
Permalink
Re: trac-post-commit-hook.py - MySQL (Apache server and Windows) [In reply to]

On Wed, Oct 14, 2009 at 10:49 AM, hare <hare23 [at] gmail> wrote:
>
> Hello All,
>
> The SVN post-commit-hook provided by trac-edgewall is compatible only
> with
> sqlite.
>
> Does anyone have experience with MySQL? I am trying to make it work
> but not
> successful yet.
>
> Please give me answer or some pointers. I tried googling but no use.
>
> kind regards, hare

Exactly what problems are you having? As far as I can tell there's
nothing in the post-commit hook that specific to any DB backend,
SQLite or otherwise.

--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


hare23 at gmail

Oct 15, 2009, 11:56 PM

Post #3 of 5 (376 views)
Permalink
Re: trac-post-commit-hook.py - MySQL (Apache server and Windows) [In reply to]

I am using the post-commit hook from :
http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?rev=920

When I do SVN commit I got following error:

"Commit failed (details follow):
MERGE of '/Playground/Work/Development/Software/Embedded': 200 OK (
http://server1)".

When I check the repository the commit was successful.

I tried manually supplying parameters to the trac-post-commit-hook.py
file and it was failing at "import sqlite" at line 74 and the
sqline.connect at line 170.

I changed the "sqlite" to "MySqlDb" and accordingly modified the
database connection string still I get following error.

"
Traceback (most recent call last):
File "trac-post-commit-hook.py", line 170, in <module>
CommitHook()
File "trac-post-commit-hook.py", line 128, in __init__
cmdGroups = commandPattern.findall(msg)
TypeError: expected string or buffer"


Thanks in advance for your help.

Kind regards, hare

On Oct 15, 9:15 pm, Erik Bray <hyugaricd...@gmail.com> wrote:
> On Wed, Oct 14, 2009 at 10:49 AM, hare <har...@gmail.com> wrote:
>
> > Hello All,
>
> > The SVN post-commit-hook provided by trac-edgewall is compatible only
> > with
> > sqlite.
>
> > Does anyone have experience with MySQL? I am trying to make it work
> > but not
> > successful yet.
>
> > Please give me answer or some pointers. I tried googling but no use.
>
> > kind regards, hare
>
> Exactly what problems are you having? As far as I can tell there's
> nothing in the post-commit hook that specific to any DB backend,
> SQLite or otherwise.
--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


hare23 at gmail

Oct 16, 2009, 12:58 AM

Post #4 of 5 (380 views)
Permalink
Re: trac-post-commit-hook.py - MySQL (Apache server and Windows) [In reply to]

I used an old python script file. Now I am using this :
http://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook

I do not see any errors , nut after I do SVN commit TRAC ticket is not
getting updated.

I am using the script files in this link without any modifications :
http://trac.edgewall.org/browser/branches/0.11-stable/contrib




On Oct 16, 8:56 am, hare <har...@gmail.com> wrote:
> I am using the post-commit hook from :http://trac.edgewall.org/browser/trunk/contrib/trac-post-commit-hook?...
>
> When I do SVN commit I got following error:
>
> "Commit failed (details follow):
> MERGE of '/Playground/Work/Development/Software/Embedded': 200 OK (http://server1)".
>
> When I check the repository the commit was successful.
>
> I tried manually supplying parameters to the trac-post-commit-hook.py
> file and it was failing at "import sqlite" at line 74 and the
> sqline.connect at line 170.
>
> I changed the "sqlite" to "MySqlDb" and accordingly modified the
> database connection string still I get following error.
>
> "
> Traceback (most recent call last):
>   File "trac-post-commit-hook.py", line 170, in <module>
>     CommitHook()
>   File "trac-post-commit-hook.py", line 128, in __init__
>     cmdGroups = commandPattern.findall(msg)
> TypeError: expected string or buffer"
>
> Thanks in advance for your help.
>
> Kind regards, hare
>
> On Oct 15, 9:15 pm, Erik Bray <hyugaricd...@gmail.com> wrote:
>
>
>
> > On Wed, Oct 14, 2009 at 10:49 AM, hare <har...@gmail.com> wrote:
>
> > > Hello All,
>
> > > The SVN post-commit-hook provided by trac-edgewall is compatible only
> > > with
> > > sqlite.
>
> > > Does anyone have experience with MySQL? I am trying to make it work
> > > but not
> > > successful yet.
>
> > > Please give me answer or some pointers. I tried googling but no use.
>
> > > kind regards, hare
>
> > Exactly what problems are you having? As far as I can tell there's
> > nothing in the post-commit hook that specific to any DB backend,
> > SQLite or otherwise.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


hyugaricdeau at gmail

Oct 19, 2009, 8:21 AM

Post #5 of 5 (371 views)
Permalink
Re: trac-post-commit-hook.py - MySQL (Apache server and Windows) [In reply to]

On Fri, Oct 16, 2009 at 3:58 AM, hare <hare23 [at] gmail> wrote:
>
> I used an old python script file. Now I am using this :
> http://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook
>
> I do not see any errors , nut after I do SVN commit TRAC ticket is not
> getting updated.
>
> I am using the script files in this link without any modifications :
> http://trac.edgewall.org/browser/branches/0.11-stable/contrib

Right. I don't know why you were using such an ancient version of the
hook script before, but a recent version should work. Are you sure
the hook script is being executed at all?

--~--~---------~--~----~------------~-------~--~----~
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 [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.