changeset message in trac.log

10 views
Skip to first unread message

Roger Oberholtzer

unread,
Jan 17, 2018, 2:28:56 AM1/17/18
to trac-...@googlegroups.com
I see that when the post-commit hook in svn runs after a checkin, the
Trac log contains this:

2018-01-16 15:53:39,496 Trac[api] WARNING: Exception caught while
"changeset_modified"
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/tracbacklink/api.py", line 290, in _invoke
return f(*args, **kwargs)
File "build/bdist.linux-x86_64/egg/tracbacklink/api.py", line 381,
in _changeset_modified
self._resource_deleted('changeset', rev, 'repository',
UnboundLocalError: local variable 'rev' referenced before assignment

I do not see any functionality issue. The changeset shows up in the
timeline. But the message is curious.

--
Roger Oberholtzer

Jun Omae

unread,
Jan 17, 2018, 3:27:23 AM1/17/18
to trac-...@googlegroups.com
Hi,
That is a TracBacklinkPlugin issue. Please create a new ticket on
trac-hacks.org via
https://trac-hacks.org/newticket?component=TracBackLinkPlugin

--
Jun Omae <jun...@gmail.com> (大前 潤)

Jun Omae

unread,
Jan 22, 2018, 4:50:53 AM1/22/18
to trac-...@googlegroups.com
Hi,

On Wed, Jan 17, 2018 at 4:28 PM, Roger Oberholtzer
<roger.ob...@gmail.com> wrote:
> I see that when the post-commit hook in svn runs after a checkin, the
> Trac log contains this:
>
> 2018-01-16 15:53:39,496 Trac[api] WARNING: Exception caught while
> "changeset_modified"
> Traceback (most recent call last):
> File "build/bdist.linux-x86_64/egg/tracbacklink/api.py", line 290, in _invoke
> return f(*args, **kwargs)
> File "build/bdist.linux-x86_64/egg/tracbacklink/api.py", line 381,
> in _changeset_modified
> self._resource_deleted('changeset', rev, 'repository',
> UnboundLocalError: local variable 'rev' referenced before assignment

I've filed the issue and posted patch for it:
https://trac-hacks.org/ticket/13359
Could you please try the patch?
Reply all
Reply to author
Forward
0 new messages