1
0
mirror of https://github.com/git/git.git synced 2024-10-22 12:28:32 +02:00

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:
Felipe Contreras 2013-04-22 16:55:22 -05:00 committed by Junio C Hamano
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: