On Wed, Jun 27, 2007 at 06:23:41PM -0000, Matt Mackall wrote:
>
> Matt Mackall <mpm@selenic.com> added the comment:
>
> Having trouble reproducing this. Here's one attempt:
Hello!
I have to admit that I can't generate a minimal example that fails,
either. Definitely I get the error in Trac if I update to 0.9.4,
however.
Trying the following example:
------------------------------------------------------------------------
from mercurial import demandimport
demandimport.enable = lambda: None
from mercurial import hg
from mercurial.ui import ui
from mercurial.repo import RepoError
from mercurial.node import hex, short, nullid
from mercurial.util import pathto, cachefunc
from mercurial.cmdutil import walkchangerevs
------------------------------------------------------------------------
results in a backtrace as reported earlier. Clearly that hack isn't
going to work, commands.py doesn't like it.
The backtrace we got from Trac seems to be cleared up by doing a
demandimport.disable() after the mercurial imports; perhaps there
should be a demandimport.disable() call at the bottom of commands.py? |