From 001a4d567d9ada65512799baaa5725916bfd9895 Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Wed, 18 May 2011 00:31:40 -0700 Subject: [PATCH] Only fetch objects that are not already present. fetch_pack was needlessly walking every ref even when the refs were already known locally. --- hggit/git_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hggit/git_handler.py b/hggit/git_handler.py index 49fe6806f0..888097a924 100644 --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -667,6 +667,7 @@ class GitHandler(object): else: want = [sha for ref, sha in refs.iteritems() if not ref.endswith('^{}')] + want = [x for x in want if x not in self.git] return want f, commit = self.git.object_store.add_pack() try: