[PATCH v2] lazymanifest: write a more efficient, pypy friendly version of lazymanifest

Jun Wu quark at fb.com
Sun Sep 25 07:03:25 EDT 2016

Excerpts from Maciej Fijalkowski's message of 2016-09-25 09:13:29 +0200:
> a proper debugger which is surprisingly hard to use in the case of
> mercurial tests

If you mean ipdb cannot be used together with run-tests.py, it could be
solved by changing its I/O to /dev/tty, like:

    from IPython.core.debugger import Pdb
    originit = Pdb.__init__
    def pdbinit(*args, **kwargs):
        fin = open('/dev/tty', 'r')
        fout = open('/dev/tty', 'w')
        originit(*args, stdin=fin, stdout=fout, **kwargs)
    Pdb.__init__ = pdbinit
    import ipdb; ipdb.set_trace()

More information about the Mercurial-devel mailing list