How to detect copies?

Benoit Boissinot bboissin at gmail.com
Thu Jan 14 17:33:08 CST 2010


On Thu, Jan 14, 2010 at 6:55 PM, Frank A. Kingswood
<frank at kingswood-consulting.co.uk> wrote:
> Frank Kingswood wrote:
>
>> The copies function does not appear to return this information. How can I
>> detect this condition?
>
> Resolved this on IRC: comparing the file data seems to be the simplest
> solution. This is now in the Perfarce extension:
>  http://www.kingswood-consulting.co.uk/hg/perfarce/rev/69af1b7f3ce5

If you want to compare,
ctx2[c].cmp(ctx1[cpy[c]].data()) is more efficient (only extracts one
full text instead of two).

Cheers,

Benoit


More information about the Mercurial-devel mailing list