[Python-Dev] Impaired Usability of the Mercurial Source Viewer

Raymond Hettinger raymond.hettinger at gmail.com
Fri Apr 1 01:15:48 CEST 2011


The Hg source viewer needs to be tweaked to improve its usability.
What we've got now is a step backwards from the previous svn viewer.

Looking at http://hg.python.org/cpython/file/default/Lib/linecache.py for example,
there are two issues.   1) the code cannot be cut-and-pasted because the
line numbers are commingled with the source text.  2) the code is hard
to read because of the alternating white and gray bars.

Contrast that to the more typical, beautiful presentations with a solid
background and the ability to cut-and-paste without grabbing line
numbers:

  http://dpaste.org/qyKv/

  http://code.activestate.com/recipes/577629-namedtupleabc-abstract-base-class-mix-in-for-named/


Raymond


P.S.  The old svn viewer worked great (looked good and could be cut),
but that was changed just before the Mercurial switchover (the fonts
changed, the line numbering code changed, and the leading changed),
so it is not a good comparison anymore.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110331/08190449/attachment.html>


More information about the Python-Dev mailing list