# HG changeset patch # User Matt Mackall # Date 1426530319 18000 # Node ID f559cae7892f1b5fa2a253fe761a8f64ebd21091 # Parent d61aa383e2e54ec7130995030d9944c918492026 crecord: fiddle with vertical whitespace diff -r d61aa383e2e5 -r f559cae7892f mercurial/crecord.py --- a/mercurial/crecord.py Mon Mar 16 13:23:42 2015 -0500 +++ b/mercurial/crecord.py Mon Mar 16 13:25:19 2015 -0500 @@ -17,6 +17,7 @@ # 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 @@ 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 @@ return appliedhunklist - - def gethw(): """ magically get the current height and width of the window (without initscr) @@ -470,7 +466,6 @@ "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