Bug: web review diff not aware of hg rename
Weijun Wang
Weijun.Wang at Sun.COM
Mon Dec 29 01:49:24 CST 2008
Matt Mackall wrote:
> On Mon, 2008-12-29 at 12:51 +0800, Weijun Wang wrote:
>> Hi All
>>
>> I 'hg rename' a file in my repo and then edit it. After the new commit,
>> 'hg tip -p' very nicely shows:
>
>> diff --git a/targ b/resp
>> rename from targ
>> rename to resp
>
> This is a non-standard git diff that you have enabled in your hg config.
Exactly!
>
>> However, the 'hg serve' web version shows:
>>
>> --- /dev/null
>> +++ b/resp
>
> And this is a standard diff accepted by most patch tools.
>
I see. But, this format is quite unfriendly. I'm now working on a bug
which rename a file and do some editing inside it. If the web view goes
the git style, my code reviewer will be very happy.
In fact, I'm using the gitweb style, shouldn't it automatically use the
git diff format?
Thanks and Happy Holidays
Max
More information about the Mercurial
mailing list