浏览代码

Improve docstrings.

Jelmer Vernooij 15 年之前
父节点
当前提交
b35c1ec6da
共有 1 个文件被更改,包括 7 次插入2 次删除
  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: