Patchwork D7912: py3: fix curses chunkselector fallback (when diffs are too large) on py3

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2020, 9:49 p.m.
Message ID <eff85acf2e36370b16923d4f97bbf4ce@localhost.localdomain>
Download mbox | patch
Permalink /patch/44453/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2020, 9:49 p.m.
Closed by commit rHG19533e4c3450: py3: fix curses chunkselector fallback (when diffs are too large) on py3 (authored by spectral).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7912?vs=19379&id=19381

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7912/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7912

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -386,7 +386,7 @@ 
                 ui, originalhunks, recordfn, operation
             )
     except crecordmod.fallbackerror as e:
-        ui.warn(b'%s\n' % e.message)  # pytype: disable=attribute-error
+        ui.warn(b'%s\n' % e)
         ui.warn(_(b'falling back to text mode\n'))
 
     return patch.filterpatch(ui, originalhunks, match, operation)