ANN/RFC: extension that shows evolution of a range of lines in a file

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Fri Apr 16 00:55:26 CDT 2010


On Thu, Apr 15, 2010 at 3:03 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Le Wed, 14 Apr 2010 21:45:12 +0200, Peter Arrenbrecht a écrit :
>> I wrote a little extension that shows you the evolution (or maybe
>> devolution as it's backwards currently) of a range of lines in a file.
>> As an example, you can find the evolution of checkbranch() in
>> localrepo.py below. The extension is attached.
>
> Hmm, sounds great when you are interested in a small part of a very
> large file (something which happens quite often when working on CPython).

Yes, that's why I wrote it.

> Some idea for nifty syntax sugar: be able to specify a function name
> instead of the line range, and have hg show the evolution of that (Python
> or C) function's definition in the given source file :-)

Do you know of any existing good Python based scanners or taggers for
such source files? (Python and C seem quite doable, but if there is a
good library somewhere...)
-parren


More information about the Mercurial mailing list