# HG changeset patch # User Matt Harbison # Date 2015-03-21 03:35:13 # Node ID 3a4122bb94880144c50135e966f7d11720d156a5 # Parent f7a3ea7b9dc6202f99d0b6bb982cbe3933a993b6 crecord: don't abort on Windows when curses isn't available This is the hack portion of the previous patch, which can be backed out once we figure out how to deal with curses. Without this, the tests affected by the import problem mentioned in the previous patch fail in exactly the same way, but with the nicer 'module not available' error. diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -32,8 +32,9 @@ else: try: curses except NameError: - raise util.Abort( - _('the python curses/wcurses module is not available/installed')) + if os.name != 'nt': # Temporary hack to get running on Windows again + raise util.Abort( + _('the python curses/wcurses module is not available/installed')) _origstdout = sys.__stdout__ # used by gethw()