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

Antoine Pitrou solipsis at pitrou.net
Fri Apr 1 02:55:10 CEST 2011


Le jeudi 31 mars 2011 à 17:46 -0700, Raymond Hettinger a écrit :
> On Mar 31, 2011, at 5:30 PM, Antoine Pitrou wrote:
> 
> > On Thu, 31 Mar 2011 16:15:48 -0700
> > Raymond Hettinger <raymond.hettinger at gmail.com> wrote:
> >> 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:
> > 
> > This is something you need to discuss with the Mercurial project.
> > See http://mercurial.selenic.com/bts/ and
> > http://mercurial.selenic.com/wiki/ContributingChanges
> 
> Are you saying that our official code viewer isn't configurable
> without getting a change through the Hg project itself?

Well, it is something that is configurable through patching.
You might want to keep the patch private to hg.python.org, of course.
But perhaps you can also convince Mercurial devs that they should it
themselves, if you are persuasive enough ;)

> Does that mean that we have have to live with it in its crippled form?

Well, I'm sure we have lived with lots of things in "crippled form"
along the years, including SVN itself. I don't think the "source code
viewer" is impacting anybody's ability to contribute. At worse you can
click the "raw" link on the left and get a nice clean view of the source
in your editor of choice.

Regards

Antoine.




More information about the Python-Dev mailing list