summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSverre Rabbelier <srabbelier@gmail.com>2010-09-04 23:50:57 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-04 23:50:57 +0200
commita658fbde30b20242def45745cd384bc56204c145 (patch)
tree1283fbe9e8c08e754d47672d4314cce94578dd39
parentd52b3e8505367d3d4a0c28c088700b85a290d247 (diff)
downloadpython-fastimport-a658fbde30b20242def45745cd384bc56204c145.tar.gz
Support the 'done' command.
-rw-r--r--fastimport/parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fastimport/parser.py b/fastimport/parser.py
index 65d0166..a54d42a 100644
--- a/fastimport/parser.py
+++ b/fastimport/parser.py
@@ -290,6 +290,8 @@ class ImportParser(LineBasedParser):
yield self._parse_commit(line[len('commit '):])
elif line.startswith('blob'):
yield self._parse_blob()
+ elif line.startswith('done'):
+ break
elif line.startswith('progress '):
yield commands.ProgressCommand(line[len('progress '):])
elif line.startswith('reset '):