# HG changeset patch # User Matt Mackall # Date 2015-03-16 18:25:19 # Node ID f559cae7892f1b5fa2a253fe761a8f64ebd21091 # Parent d61aa383e2e54ec7130995030d9944c918492026 crecord: fiddle with vertical whitespace diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -17,6 +17,7 @@ import os, re, sys, fcntl, struct, termi # This is required for ncurses to display non-ASCII characters in default user # locale encoding correctly. --immerrr locale.setlocale(locale.LC_ALL, '') + # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' if os.name == 'posix': import curses @@ -30,11 +31,8 @@ except NameError: raise util.Abort( _('the python curses/wcurses module is not available/installed')) - _origstdout = sys.__stdout__ # used by gethw() - - class patchnode(object): """abstract class for patch graph nodes (i.e. patchroot, header, hunk, hunkline) @@ -455,8 +453,6 @@ def filterpatch(ui, chunks, chunk_select return appliedhunklist - - def gethw(): """ magically get the current height and width of the window (without initscr) @@ -470,7 +466,6 @@ def gethw(): "hhhh", fcntl.ioctl(_origstdout, termios.TIOCGWINSZ, "\000"*8))[0:2] return h, w - def chunkselector(headerlist, ui): """ curses interface to get selection of chunks, and mark the applied flags