remote-hg: small performance improvement
Load previous manifest first as Mercurial does; for caching reasons. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
b0f6c5835d
commit
1a2636c297
@ -230,8 +230,9 @@ def get_filechanges(repo, ctx, parent):
|
||||
added = set()
|
||||
removed = set()
|
||||
|
||||
cur = ctx.manifest()
|
||||
# load earliest manifest first for caching reasons
|
||||
prev = repo[parent].manifest().copy()
|
||||
cur = ctx.manifest()
|
||||
|
||||
for fn in cur:
|
||||
if fn in prev:
|
||||
|
Loading…
Reference in New Issue
Block a user