mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2025-11-11 13:45:40 +01: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:
@@ -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