demandimport: add urwid.command_map to ignore list
authorPhil Cohen <phillco@fb.com>
Wed, 03 May 2017 18:26:57 -0700
changeset 32173 c939fdce0fde
parent 32172 448ed4d3ee90
child 32174 e4a4ebfd9d8e
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.
mercurial/demandimport.py
tests/test-check-code.t
--- a/mercurial/demandimport.py	Fri May 05 10:08:36 2017 -0700
+++ b/mercurial/demandimport.py	Wed May 03 18:26:57 2017 -0700
@@ -297,6 +297,7 @@
     'distutils.msvc9compiler',
     '__builtin__',
     'builtins',
+    'urwid.command_map', # for pudb
     ]
 
 if _pypy:
--- a/tests/test-check-code.t	Fri May 05 10:08:36 2017 -0700
+++ b/tests/test-check-code.t	Wed May 03 18:26:57 2017 -0700
@@ -13,7 +13,7 @@
    >             r.revision(r.node(x))
    don't convert rev to node before passing to revision(nodeorrev)
   Skipping i18n/polib.py it has no-che?k-code (glob)
-  mercurial/demandimport.py:313:
+  mercurial/demandimport.py:314:
    >     if os.environ.get('HGDEMANDIMPORT') != 'disable':
    use encoding.environ instead (py3)
   mercurial/encoding.py:54: