octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advices on Mercurial history search


From: Pantxo
Subject: Re: Advices on Mercurial history search
Date: Tue, 25 Sep 2018 14:24:38 -0500 (CDT)

Mike Miller-4 wrote
> On Tue, Sep 25, 2018 at 17:40:04 +0200, Pantxo Diribarne wrote:
>> Now comes the precise question: is there any magic "hg log XXX" call that
>> would let me find the specific changeset in which current lines N to N+M
>> were added to graphics.cc?
> 
> I typically use 'hg grep --all ${pattern}' to search for when a
> particular comment or line of code was added. Or if I am only looking at
> a particular file, I may use 'hg log -p ${file}' and search
> interactively using less.
> 
> I have not had much luck with 'hg blame' on the Octave code tree because
> there are often many changes in organization, indentation, formatting,
> and spelling lying between the head and the actual change I am
> interested in.
> 
> -- 
> mike
> 
> 
> signature.asc (849 bytes)
> <http://octave.1599824.n4.nabble.com/attachment/4689482/0/signature.asc>

The "hg blame" method happened to work very well here because the specific
line was there untouched from the very begining of Fdrawnow. Anyway, I'll
note those methods in my hg apprentice book as well :-).

Thanks,

Pantxo



--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]