[PATCH] Allow C&P from file revision in hgweb without also copying line numbers

Laurens Holst laurens.nospam at grauw.nl
Wed Oct 12 03:33:03 CDT 2011

Op 12-10-11 03:02, Matt Mackall schreef:
> On Wed, 2011-10-12 at 01:59 +0200, Laurens Holst wrote:
>> Op 12-10-2011 1:15, Jordi Gutiérrez Hermoso schreef:
>>> 2011/10/11 Laurens Holst<laurens.nospam at grauw.nl>:
>>>> Let me make sure if I understand correctly, you’re trying to change the
>>>> behaviour of *triple-clicking* on the line?
>>> No.
>>> I want to make it possible to copy and paste code from the filerev
>>> view without getting the line numbers.
>> But that’s already perfectly possible? Click to the right of the line
>> number, drag to the right, release.
> ..and if you drag down?
> Here I get the first line correctly, then line numbers for every
> subsequent line selected. Firefox.

Ah ok, I mis-read the template, I though it generated a table for every 
line. Sorry for the noise.

Still, I would use two divs (or pre’s) instead of a table, the table 
will either reflow a lot (even with only two cells) and be slower, or 
incremental rendering does not work because it waits with rendering 
until the entire cell contents is loaded. (I’m not exactly sure which of 
the two current browsers pick.)

.div1 { width: 100px; position: absolute; }
.div2 { margin-left: 100px; }


More information about the Mercurial-devel mailing list