Kaynağa Gözat

Improve docstrings.

Jelmer Vernooij 15 yıl önce
ebeveyn
işleme
b35c1ec6da
1 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 7 2
      dulwich/object_store.py

+ 7 - 2
dulwich/object_store.py

@@ -694,7 +694,12 @@ class MissingObjectFinder(object):
 
 
 class ObjectStoreGraphWalker(object):
-    """Graph walker that finds out what commits are missing from an object store."""
+    """Graph walker that finds out what commits are missing from an object 
+    store.
+    
+    :ivar heads: Revisions without descendants in the local repo
+    :ivar get_parents: Function to retrieve parents in the local repo
+    """
 
     def __init__(self, local_heads, get_parents):
         """Create a new instance.
@@ -707,7 +712,7 @@ class ObjectStoreGraphWalker(object):
         self.parents = {}
 
     def ack(self, sha):
-        """Ack that a particular revision and its ancestors are present in the source."""
+        """Ack that a revision and its ancestors are present in the source."""
         if sha in self.heads:
             self.heads.remove(sha)
         if sha in self.parents: