diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 20:11:53 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 20:11:53 +0100 |
commit | f1118005cec7cfcd2bd0b6b1358b34a05b14174c (patch) | |
tree | 672840835ca51ab784b501a79b027d82909e56fb | |
parent | c0810c29f5a70c82d30f5ce6521391a506d1121e (diff) | |
download | python-fastimport-f1118005cec7cfcd2bd0b6b1358b34a05b14174c.tar.gz |
If there is no mark then don't track it.
-rw-r--r-- | fastimport/processors/filter_processor.py | 3 |
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.""" |