Message11501

Author pmezard
Recipients mpm
Date 2010-01-24.11:39:59
Content
To reproduce, run the attached test script before and after:


changeset:   10262:eb243551cbd8
branch:      stable
user:        Matt Mackall <mpm@selenic.com>
date:        Tue Jan 19 22:20:05 2010 -0600
files:       mercurial/context.py mercurial/copies.py
description:
copies: speed up copy detection

On some large repos, copy detection could spend > 10min using
fctx.ancestor() to determine if file revisions were actually related.
Because ancestor must traverse history to the root to determine the
GCA, it was doing a lot more work than necessary. With this
replacement, same status -r a:b takes ~3 seconds.
Files
File name Uploaded
test-rebase-copies.diff pmezard, 2010-01-24.11:39:59
History
Date User Action Args
2010-01-24 11:39:59pmezardsetrecipients: + mpm
2010-01-24 11:39:59pmezardsetmessageid: <1264333199.27.0.559442935117.issue1994@mercurial.selenic.com>
2010-01-24 11:39:59pmezardlinkissue1994 messages
2010-01-24 11:39:59pmezardcreate