cat --follow [was: extdiff --git ?]

j w jwdevel at gmail.com
Sun Dec 16 21:56:59 CST 2007


>
> I guess that relates to my other question about 'hg cat' - if that
> worked with renames, I could just create the temporaries myself and do
> the diff without too much trouble.
>
> -John
>

Since this seems generally useful (at least to me), I'm going to try
adding a -f option to 'hg cat', with similar meaning to that of 'hg
log'.

Any reason this might be a bad idea?

Here is my test case:

hg init testrepo
cd testrepo
echo hello > foo
hg add foo
hg commit -m "added foo"
hg rename foo bar
hg commit -m "renamed foo to bar"
hg cat -r 0 bar
    bar: No such file in rev 3eb940386d72                  <--- this
will be addressed with -f


-John


More information about the Mercurial mailing list