git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
b0f6c58
)
remote-hg: small performance improvement
author
Felipe Contreras
<redacted>
Mon, 22 Apr 2013 21:55:22 +0000
(16:55 -0500)
committer
Junio C Hamano
<redacted>
Mon, 22 Apr 2013 22:25:55 +0000
(15:25 -0700)
Load previous manifest first as Mercurial does; for caching reasons.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index 6f4afd729c9410950abad08b4937acfa0a1b9f78..f80236be63dbaeba92dcaaaaa7e77173d0d394c1 100755
(executable)
--- 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:
git clone https://git.99rst.org/PROJECT