summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-12-11 20:11:53 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-12-11 20:11:53 +0100
commitf1118005cec7cfcd2bd0b6b1358b34a05b14174c (patch)
tree672840835ca51ab784b501a79b027d82909e56fb
parentc0810c29f5a70c82d30f5ce6521391a506d1121e (diff)
downloadpython-fastimport-f1118005cec7cfcd2bd0b6b1358b34a05b14174c.tar.gz
If there is no mark then don't track it.
-rw-r--r--fastimport/processors/filter_processor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fastimport/processors/filter_processor.py b/fastimport/processors/filter_processor.py
index 4f254ba..2445ae2 100644
--- a/fastimport/processors/filter_processor.py
+++ b/fastimport/processors/filter_processor.py
@@ -121,7 +121,8 @@ class FilterProcessor(processor.ImportProcessor):
parents = [cmd.from_]
else:
parents = None
- self.parents[":" + cmd.mark] = parents
+ if cmd.mark is not None:
+ self.parents[":" + cmd.mark] = parents
def reset_handler(self, cmd):
"""Process a ResetCommand."""