Преглед на файлове

clarify that find_missing_objects looks at objects in general, not specifically commits.

Jelmer Vernooij преди 16 години
родител
ревизия
b68a6f49f9
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      dulwich/repo.py

+ 4 - 4
dulwich/repo.py

@@ -98,7 +98,7 @@ class Repo(object):
         updated progress strings.
     """
     wants = determine_wants(self.get_refs())
-    commits_to_send = set(wants)
+    objects_to_send = set(wants)
     sha_done = set()
 
     def parse_tree(tree, sha_done):
@@ -120,15 +120,15 @@ class Repo(object):
         if ref in self.object_store:
             graph_walker.ack(ref)
         ref = graph_walker.next()
-    while commits_to_send:
-        sha = commits_to_send.pop()
+    while objects_to_send:
+        sha = objects_to_send.pop()
         if (sha, None) in sha_done:
             continue
 
         c = self.object_store[sha]
         if isinstance(c, Commit):
             parse_commit(c, sha_done)
-            commits_to_send.update([p for p in c.parents if not p in sha_done])
+            objects_to_send.update([p for p in c.parents if not p in sha_done])
         sha_done.add((sha, None))
 
         progress("counting objects: %d\r" % len(sha_done))