Clarify behaviour of parse_committishs.
authorJelmer Vernooij <jelmer@jelmer.uk>
Sun, 1 Nov 2015 03:39:58 +0000 (03:39 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 1 Nov 2015 03:39:58 +0000 (03:39 +0000)
dulwich/objectspec.py

index 4b99b5de6118e03e94c9516dcc82493e14b11900..880c6748aac9a7168632173e6078d3a35f4da0e0 100644 (file)
@@ -133,7 +133,8 @@ def parse_commit_range(repo, committishs):
     :raise ValueError: If the range can not be parsed
     """
     committishs = to_bytes(committishs)
-    return iter([repo[committishs]])
+    # TODO(jelmer): Support more than a single commit..
+    return iter([parse_commit(committishs)])
 
 
 def parse_commit(repo, committish):
@@ -147,3 +148,6 @@ def parse_commit(repo, committish):
     """
     committish = to_bytes(committish)
     return repo[committish] # For now..
+
+
+# TODO: parse_path_in_tree(), which handles e.g. v1.0:Documentation