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:

committed by
Junio C Hamano

parent
b0f6c5835d
commit
1a2636c297
@ -230,8 +230,9 @@ def get_filechanges(repo, ctx, parent):
|
|||||||
added = set()
|
added = set()
|
||||||
removed = set()
|
removed = set()
|
||||||
|
|
||||||
cur = ctx.manifest()
|
# load earliest manifest first for caching reasons
|
||||||
prev = repo[parent].manifest().copy()
|
prev = repo[parent].manifest().copy()
|
||||||
|
cur = ctx.manifest()
|
||||||
|
|
||||||
for fn in cur:
|
for fn in cur:
|
||||||
if fn in prev:
|
if fn in prev:
|
||||||
|
Reference in New Issue
Block a user