On Mon, Jul 13, 2009 at 10:37 AM, Hal<[email protected]> wrote:
>
> On Jul 5, 8:46 am, "[email protected]" <[email protected]>
> wrote:
>> I've got this message error when I tried to create or access any Trac
>> project based on aMercurialrepository:
>>
>> TypeError: __init__() got an unexpected keyword argument 'interactive'
>>
[...]
>> Any ideas?
>
> As a workaround, downgrade to mercurial 1.2.x. I ran into the same
> issue, and that "resolved" it:
> easy_install 'mercurial<1.3'
>
Oh ! Yes !
I did it . I forgot to mention that I installed Hg connector using 1.3
and I experienced the same (and a few more ;o) problems. It needs some
minor changes since it seems that some refactorings have been
performed in Mercurial and things are not where they used to be.
Thanks God Hg is implemented in Py !
Please apply the following patch to backend.py (i.e. TracMercurial
r7744 for Trac 0.11)
{{{
--- /media/A-Denys14GB/soft/Tools/PM/trac/tracX/hg/backend.py
2008-12-03 17:43:40.000000000 -0500
+++ /media/A-Denys14GB/soft/Tools/PM/trac/tracX/hg/backend_fixed.py
2009-07-08 06:39:09.000000000 -0500
@@ -47,7 +47,7 @@
from mercurial import hg
from mercurial.hg import repository
from mercurial.ui import ui
- from mercurial.repo import RepoError
+ from mercurial.error import RepoError
from mercurial.revlog import LookupError
from mercurial.node import hex, short, nullid
from mercurial.util import pathto, cachefunc
@@ -204,8 +204,8 @@
def get_repository(self, type, dir, authname):
"""Return a `MercurialRepository`"""
if not self._version:
- from mercurial.version import get_version
- self._version = get_version()
+ from mercurial.__version__ import version
+ self._version = version
self.env.systeminfo.append(('Mercurial', self._version))
if not self.ui:
self._setup_ui(self.config.get(type, 'hgrc'))
@@ -251,7 +251,7 @@
class trac_ui(ui):
def __init__(self, log, *args, **kwargs):
kwargs = kwargs.copy()
- kwargs['interactive'] = False
+ # kwargs['interactive'] = False
ui.__init__(self, *args, **kwargs)
self.log = log
}}}
PS: If anybody has the time, please, submit a patch to Trac's site .
Other people might need it too ;o)
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---