Opened 15 years ago
Closed 15 years ago
#8891 closed defect (fixed)
trac-admin resync crashes for TracMercurial because of extsetup
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | plugin - mercurial |
Component: | plugin/mercurial | Version: | 0.11.6 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I use trac-admin (0.11.6) and do a resync of my hg repositories, and trac-admin crashes.
In the TracMercurial plugin the code in backend.py is:
if extsetup: extsetup()
which is wrong.
Reason: extsetup needs a parameter
I changed it to, the following:
if extsetup: extsetup(self.ui) #bugfix
Now trac-admin does not crash.. but I am not sure if my workaround is correct
See:
http://trac.edgewall.org/browser/sandbox/mercurial-plugin-0.11/tracext/hg/backend.py?rev=8907#L188
Attachments (0)
Change History (3)
comment:1 by , 15 years ago
Milestone: | 0.12 → mercurial-plugin |
---|
comment:2 by , 15 years ago
OK thanks,
it does not crash anymore.
I leave it up to you to close this ticket as soon as you have patched the sources ;-)
Anton
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Could you please confirm the following fix?
tracext/hg/backend.py