diff of moved files

Augie Fackler raf at durin42.com
Fri Nov 29 20:03:38 CST 2013


On Nov 29, 2013, at 6:23 PM, Thomas Klausner <tk at giga.or.at> wrote:

> Hi!
> 
> When I import remote sources, I use 'git addremove -s 80' to find
> files that were moved. This works fine -- it recognizes if a is
> renamed to b and modified.
> 
> When I do 'hg diff' before committing this, I get two diffs though:
> one for removing a and one for adding b. I'd be more interested in the
> diff between a and b, since we've decided it's the same file.
> 
> Is there a way to get that?

'hg help diff' might have led you to 'hg diff --git', which I believe does this.

> 
> Thanks,
> Thomas
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://selenic.com/pipermail/mercurial/attachments/20131129/626cd391/attachment.pgp>


More information about the Mercurial mailing list