summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2013-04-22 16:55:22 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-04-22 15:25:55 -0700
commit1a2636c297675735639c3cfee2ed15520fd678c9 (patch)
tree5a8e362e06c891b59defac4759fd2f2082ccee72 /contrib/remote-helpers
parentremote-hg: allow refs with spaces (diff)
downloadtgif-1a2636c297675735639c3cfee2ed15520fd678c9.tar.xz
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>
Diffstat (limited to 'contrib/remote-helpers')
-rwxr-xr-xcontrib/remote-helpers/git-remote-hg3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg
index 6f4afd729c..f80236be63 100755
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -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: