diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-04-22 16:55:22 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-22 15:25:55 -0700 |
commit | 1a2636c297675735639c3cfee2ed15520fd678c9 (patch) | |
tree | 5a8e362e06c891b59defac4759fd2f2082ccee72 /contrib/remote-helpers | |
parent | remote-hg: allow refs with spaces (diff) | |
download | tgif-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-x | contrib/remote-helpers/git-remote-hg | 3 |
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: |