Patchwork demandimport: add urwid.command_map to ignore list

login
register
mail settings
Submitter Phillip Cohen
Date May 5, 2017, 5:21 p.m.
Message ID <cf8db08b4781b946b1b0.1494004878@phillco-mbp.dhcp.thefacebook.com>
Download mbox | patch
Permalink /patch/20460/
State Accepted
Headers show

Comments

Phillip Cohen - May 5, 2017, 5:21 p.m.
# HG changeset patch
# User Phil Cohen <phillco@fb.com>
# Date 1493861217 25200
#      Wed May 03 18:26:57 2017 -0700
# Branch stable
# Node ID cf8db08b4781b946b1b0e6c3c98dbf1a658f44aa
# Parent  6e0368b6e0bb2aa5210daec091c0200583553a78
demandimport: add urwid.command_map to ignore list

The useful pudb debugger can be used with Mercurial, but its import of urwid
fails when demandimport is enabled. Add urwid.command_map to the ignore list so
pudb can be used with hg without disabling all of demandimport.
Augie Fackler - May 5, 2017, 11:17 p.m.
On Fri, May 05, 2017 at 10:21:18AM -0700, Phil Cohen wrote:
> # HG changeset patch
> # User Phil Cohen <phillco@fb.com>
> # Date 1493861217 25200
> #      Wed May 03 18:26:57 2017 -0700
> # Branch stable
> # Node ID cf8db08b4781b946b1b0e6c3c98dbf1a658f44aa
> # Parent  6e0368b6e0bb2aa5210daec091c0200583553a78
> demandimport: add urwid.command_map to ignore list

queued, thanks

Patch

diff --git a/mercurial/demandimport.py b/mercurial/demandimport.py
--- a/mercurial/demandimport.py
+++ b/mercurial/demandimport.py
@@ -297,6 +297,7 @@ 
     'distutils.msvc9compiler',
     '__builtin__',
     'builtins',
+    'urwid.command_map', # for pudb
     ]
 
 if _pypy: