changeset 395:01c9eeedde04

Only fetch objects that are not already present. fetch_pack was needlessly walking every ref even when the refs were already known locally.
author Brendan Cully <brendan@kublai.com>
date Wed, 18 May 2011 00:31:40 -0700
parents 721165a45385
children de0b2661032f
files hggit/git_handler.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -667,6 +667,7 @@
             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: