Thank you!
> SET TRAC_PATH=

*I suppose that the path to folder containing the hook script
*
my hook scripts are located in my repository:
E:\myrepository\hooks, I tried to put this path there, like SET TRAC_PATH=
E:\myrepository\hooks
  and still does the same.: No error no update ticket.

I have post-commit.bat file it has this line:

REPOS="$1"
REV="$2"
mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
call %~dp0\trac-post-commit-hook.cmd %1 %2


I have set trac debug mode, here they are:
16:12:54,681 Trac[main] DEBUG: Dispatching <Request "POST u'/login/xmlrpc'">
2010-01-07 16:12:54,688 Trac[filter] INFO: HTTPAuthFilter: No/bad
authentication data given, returing 403
2010-01-07 16:12:54,736 Trac[main] DEBUG: Dispatching <Request "POST
u'/login/xmlrpc'">
2010-01-07 16:12:54,736 Trac[filter] DEBUG: HTTPAuthFilter: Authentication
okay for lynda
2010-01-07 16:12:54,740 Trac[web_ui] DEBUG: RPC(xml) call by 'lynda', method
'ticket.query' with args: ('status!=non_existant_status',)
2010-01-07 16:12:54,740 Trac[filter] DEBUG: HTTPAuthFilter: Authentication
okay for lynda
2010-01-07 16:12:54,742 Trac[query] DEBUG: Count results in Query: 6
2010-01-07 16:12:54,743 Trac[query] DEBUG: Query SQL: SELECT t.id AS
id,t.summary AS summary,t.status AS status,t.owner AS owner,t.type AS
type,t.priority AS priority,t.milestone AS milestone,t.time AS
time,t.changetime AS changetime,priority.value AS priority_value
FROM ticket AS t
  LEFT OUTER JOIN enum AS priority ON (priority.type='priority' AND
priority.name=priority)
WHERE COALESCE(t.status,'')!='non_existant_status'
ORDER BY COALESCE(priority.value,'')='',CAST(priority.value AS int),t.id
2010-01-07 16:12:54,743 Trac[web_ui] DEBUG: RPC(xml) 'ticket.query' result:
([1, 2, 3, 4, 5, 6],)
2010-01-07 16:12:54,779 Trac[session] DEBUG: Retrieving session for ID
'lynda'
2010-01-07 16:12:54,802 Trac[main] DEBUG: Dispatching <Request "POST
u'/login/xmlrpc'">
2010-01-07 16:12:54,805 Trac[filter] INFO: HTTPAuthFilter: No/bad
authentication data given, returing 403
2010-01-07 16:12:54,805 Trac[session] DEBUG: Retrieving session for ID
'7c7169729ff06ca90881567c'
2010-01-07 16:12:54,829 Trac[main] DEBUG: Dispatching <Request "POST
u'/login/xmlrpc'">
2010-01-07 16:12:54,831 Trac[filter] DEBUG: HTTPAuthFilter: Authentication
okay for lynda
2010-01-07 16:12:54,835 Trac[web_ui] DEBUG: RPC(xml) call by 'lynda', method
'system.multicall' with args: ([{'params': ['1'], 'methodName':
'ticket.get'}, {'params': ['2'], 'methodName': 'ticket.get'}, {'params':
['3'], 'methodName': 'ticket.get'}, {'params': ['4'], 'methodName':
'ticket.get'}, {'params': ['5'], 'methodName': 'ticket.get'}, {'params':
['6'], 'methodName': 'ticket.get'}],)
2010-01-07 16:12:54,835 Trac[filter] DEBUG: HTTPAuthFilter: Authentication
okay for lynda
2010-01-07 16:12:54,839 Trac[web_ui] DEBUG: RPC(xml) 'system.multicall'
result: ([(['1', datetime.datetime(2009, 12, 29, 0, 26, 9,
tzinfo=<FixedOffset "UTC" 0:00:00>), datetime.datetime(2010, 1, 5, 18, 14,
36, tzinfo=<FixedOffset "UTC" 0:00:00>), {'status': u'closed',
'description': u'test email function', 'reporter': u'lynda', 'cc': u'',
'resolution': u'fixes', 'component': u'trac installation', 'summary': u'test
1', 'priority': u'major', 'keywords': u'', 'version': u'1.0', 'milestone':
u'', 'owner': u'lynda', 'type': u'defect'}],), (['2',
datetime.datetime(2009, 12, 29, 0, 38, 39, tzinfo=<FixedOffset "UTC"
0:00:00>), datetime.datetime(2009, 12, 29, 0, 40, 55, tzinfo=<FixedOffset
"UTC" 0:00:00>), {'status': u'closed', 'description': u'sendinge mail
trhough gmail', 'reporter': u'lynda', 'cc': u'', 'resolution': u'fixed',
'component': u'trac installation', 'summary': u'test email notification',
'priority': u'major', 'keywords': u'', 'version': u'', 'milestone': u'',
'owner': u'lynda', 'type': u'defect'}],), (['3', datetime.datetime(2009, 12,
29, 0, 49, 28, tzinfo=<FixedOffset "UTC" 0:00:00>), datetime.datetime(2009,
12, 29, 21, 25, 3, tzinfo=<FixedOffset "UTC" 0:00:00>), {'status': u'new',
'description': u'should be able to add bug id when commit to repository, and
view the bug from trac project management', 'reporter': u'lynda', 'cc': u'',
'component': u'trac and subversion integration', 'summary': u'find how to
add issue/bug/defect id', 'priority': u'major', 'keywords': u'', 'version':
u'1.0', 'milestone': u'', 'owner': u'somebody', 'type': u'task'}],), (['4',
datetime.datetime(2010, 1, 5, 17, 38, 15, tzinfo=<FixedOffset "UTC"
0:00:00>), datetime.datetime(2010, 1, 6, 23, 8, 28, tzinfo=<FixedOffset
"UTC" 0:00:00>), {'status': u'closed', 'description': u'check if the status
of a ticket willbe changed.', 'reporter': u'lynda', 'cc': u'', 'resolution':
u'fixed', 'component': u'a2zdeals', 'summary': u'test tracexplorer
updating', 'priority': u'major', 'keywords': u'', 'version': u'',
'milestone': u'', 'owner': u'lynda', 'type': u'task'}],), (['5',
datetime.datetime(2010, 1, 5, 18, 15, 52, tzinfo=<FixedOffset "UTC"
0:00:00>), datetime.datetime(2010, 1, 7, 19, 51, 35, tzinfo=<FixedOffset
"UTC" 0:00:00>), {'status': u'closed', 'description': u'check if the post
commit hook script will change status', 'reporter': u'lynda', 'cc': u'',
'resolution': u'fixed', 'component': u'a2zdeals', 'summary': u'test post
commit hook', 'priority': u'major', 'keywords': u'', 'version': u'',
'milestone': u'', 'owner': u'lynda', 'type': u'task'}],), (['6',
datetime.datetime(2010, 1, 6, 0, 30, 30, tzinfo=<FixedOffset "UTC"
0:00:00>), datetime.datetime(2010, 1, 6, 22, 9, 18, tzinfo=<FixedOffset
"UTC" 0:00:00>), {'status': u'closed', 'description': u'', 'reporter':
u'lynda', 'cc': u'', 'resolution': u'fixed', 'component': u'a2zdeals',
'summary': u'change hook cmd file', 'priority': u'major', 'keywords': u'',
'version': u'', 'milestone': u'', 'owner': u'lynda', 'type':
u'defect'}],)],)
2010-01-07 16:12:54,947 Trac[session] DEBUG: Retrieving session for ID
'lynda'
2010-01-07 16:13:01,944 Trac[env] INFO: --------------------------------
environment startup [Trac 0.11.6] --------------------------------
2010-01-07 16:13:01,956 Trac[loader] DEBUG: Loading trac.ticket.web_ui from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,957 Trac[loader] DEBUG: Loading trac.mimeview.php from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,959 Trac[loader] DEBUG: Loading trac.ticket.query from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,970 Trac[loader] DEBUG: Loading trac.attachment from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,970 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_fs from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,974 Trac[loader] DEBUG: Loading trac.mimeview.patch from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,974 Trac[loader] DEBUG: Loading trac.mimeview.txtl from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,980 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl =
trac.mimeview.txtl [textile]": ("DistributionNotFound: textile>=2.0" not
found)
2010-01-07 16:13:01,980 Trac[loader] DEBUG: Loading trac.admin.web_ui from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,986 Trac[loader] DEBUG: Loading trac.ticket.admin from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,986 Trac[loader] DEBUG: Loading trac.mimeview.rst from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,992 Trac[loader] DEBUG: Skipping "trac.mimeview.rst =
trac.mimeview.rst [rest]": ("DistributionNotFound: docutils>=0.3" not found)
2010-01-07 16:13:01,992 Trac[loader] DEBUG: Loading trac.db.postgres from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:01,996 Trac[loader] DEBUG: Loading
trac.versioncontrol.web_ui from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,006 Trac[loader] DEBUG: Loading trac.timeline from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,006 Trac[loader] DEBUG: Loading trac.mimeview.pygments
from c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,012 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments
= trac.mimeview.pygments [pygments]": ("DistributionNotFound: Pygments>=0.6"
not found)
2010-01-07 16:13:02,012 Trac[loader] DEBUG: Loading trac.about from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,013 Trac[loader] DEBUG: Loading trac.wiki.interwiki from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,013 Trac[loader] DEBUG: Loading trac.ticket.roadmap from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,015 Trac[loader] DEBUG: Loading
trac.versioncontrol.svn_prop from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,016 Trac[loader] DEBUG: Loading trac.mimeview.silvercity
from c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,022 Trac[loader] DEBUG: Skipping
"trac.mimeview.silvercity = trac.mimeview.silvercity [silvercity]":
("DistributionNotFound: SilverCity>=0.9.4" not found)
2010-01-07 16:13:02,022 Trac[loader] DEBUG: Loading trac.wiki.macros from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,022 Trac[loader] DEBUG: Loading trac.db.sqlite from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,029 Trac[loader] DEBUG: Loading trac.wiki.web_ui from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,029 Trac[loader] DEBUG: Loading trac.mimeview.enscript
from c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,030 Trac[loader] DEBUG: Loading trac.web.auth from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,038 Trac[loader] DEBUG: Loading trac.admin.console from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,045 Trac[loader] DEBUG: Loading trac.db.mysql from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,048 Trac[loader] DEBUG: Loading trac.search from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,049 Trac[loader] DEBUG: Loading trac.prefs from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,051 Trac[loader] DEBUG: Loading trac.ticket.report from
c:\python26\lib\site-packages\trac-0.11.6-py2.6-win32.egg
2010-01-07 16:13:02,052 Trac[loader] DEBUG: Loading acct_mgr.admin from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,059 Trac[loader] DEBUG: Loading acct_mgr.db from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,062 Trac[loader] DEBUG: Loading acct_mgr.htfile from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,063 Trac[loader] DEBUG: Loading acct_mgr.http from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,063 Trac[loader] DEBUG: Loading acct_mgr.notification
from c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,065 Trac[loader] DEBUG: Loading acct_mgr.pwhash from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,065 Trac[loader] DEBUG: Loading acct_mgr.svnserve from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,065 Trac[loader] DEBUG: Loading acct_mgr.web_ui from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,065 Trac[loader] DEBUG: Loading acct_mgr.api from
c:\python26\lib\site-packages\tracaccountmanager-0.2.1dev-py2.6.egg
2010-01-07 16:13:02,068 Trac[loader] DEBUG: Loading TracXMLRPC from
c:\python26\lib\site-packages\tracxmlrpc-1.0.6-py2.6.egg
2010-01-07 16:13:02,088 Trac[loader] DEBUG: Loading httpauth.filter from
c:\python26\lib\site-packages\trachttpauth-1.1-py2.6.egg
2010-01-07 16:13:02,092 Trac[default_workflow] DEBUG: Workflow actions at
initialization: {u'resolve': {u'operations': [u'set_resolution'], 'name':
u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new',
u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']},
u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept',
'default': 0, 'newstate': u'accepted', 'oldstates': [u'new', u'assigned',
u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave':
{u'operations': [u'leave_status'], 'name': u'leave', u'default': 1,
'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reopen':
{u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0,
'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions':
[u'TICKET_CREATE']}, u'reassign': {u'operations': [u'set_owner'], 'name':
u'reassign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new',
u'assigned', u'accepted', u'reopened'], u'permissions': [u'TICKET_MODIFY']},
'_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0,
'newstate': 'new', 'oldstates': [], 'permissions': []}}
2010-01-07 16:13:02,153 Trac[svn_fs] DEBUG: Subversion bindings imported
2010-01-07 16:13:02,157 Trac[cache] INFO: repos rev [136] != cached rev
[135]
2010-01-07 16:13:02,158 Trac[cache] INFO: Trying to sync revision [136]
2010-01-07 16:13:02,163 Trac[cache] DEBUG: Caching node change in [136]:
(u'trunk/wwwroot/Default.aspx', 'file', 'edit',
u'trunk/wwwroot/Default.aspx', 135)


On Thu, Jan 7, 2010 at 12:57 PM, Olemis Lang <[email protected]> wrote:

> On Thu, Jan 7, 2010 at 3:44 PM, Lynda Li <[email protected]> wrote:
> > Thank you! Sorry I deleted previous post since I found out that I used
> > pre-commit-hook for post commit and some questiosn are resolved.
> > I don't think any white spaces in my path. I installed trac 2 weeks ago,
> and
> > was not sure about where is my trac_path and trac_env, I am think the
> > variables I set in trac-post-commit-hook.cmd might be wrong.
> > Here are some trac information of my installation and foollowed
> instruction
> > on
> >
> [...]
> >
> > I am sorry I don't know how to resolve the white space or DB AFAICr
> issue. I
> > did n;t see any space in my path.  Here is my trac-post-command-hook.cmd,
> > can you help me if some path I set is wrong?
> >
>
> You don't need to considering the info above ... well, it was above ;o)
>
> > @ECHO OFF
> > SET TRAC_ENV=C:\trac
> > :: -- set if Python is not in the system path
>
> ok
>
> > SET PYTHON_PATH=C:\Python26
> > :: -- set to the folder containing trac/ if installed in a non-standard
> > location
>
> ok
>
> > :: I don't know what should put here, I tried C:\trac
> > SET TRAC_PATH=
>
> I suppose that the path to folder containing the hook script
>
> > IF NOT EXIST %TRAC_ENV% GOTO :EOF
> > set PATH=%PYTHON_PATH%;%PATH%
> > set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%
> >
> > IF NOT EXIST %TRAC_ENV% GOTO :EOF
> > set PATH=%PYTHON_PATH%;%PATH%
> > set PYTHONPATH=%TRAC_PATH%;%PYTHONPATH%
>
> seems 2b ok
>
> > SET REV=%2
> > Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%" 2>&1
> > 1>>c:/temp/trachook.log
> >
>
> I don't get this ... did you try to run this `.bat` file or used the
> script directly ?
>
> > Thank you very much! I really appriecte your kind help.
>
> :o)
>
> --
> Regards,
>
> Olemis.
>
> Blog ES: http://simelo-es.blogspot.com/
> Blog EN: http://simelo-en.blogspot.com/
>
> Featured article:
> TracRpc: Removed call to `rpc_match` inside `rpc_info`. + docs ;o)  -
> http://bitbucket.org/osimons/trac-rpc-mq/changeset/f7fd46580552/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<trac-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Reply via email to