hg diff on a modified line

Dilip M dilipm79 at gmail.com
Fri Sep 21 11:46:27 UTC 2012


On Fri, Sep 21, 2012 at 5:05 PM, praveen_m86 <praveen_m86 at rediffmail.com> wrote:
> Hello All,
>
>                 If I am modifying a line in a tracked file and run hg diff,
> the output is as if i have removed the line and added a new line. Y is it so
> ? Is there any option to display that particular change just as modified
> line ?
>
> e.g
>
> hg diff Hello.py
>
> -from app.test.method import *
> +from app.test.methods import *

hg status -m    #  show only modified files

hg diff --stat    #  output diffstat-style summary of changes


...D



More information about the Mercurial mailing list