summaryrefslogtreecommitdiff
path: root/fastimport
diff options
context:
space:
mode:
Diffstat (limited to 'fastimport')
-rw-r--r--fastimport/commands.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/fastimport/commands.py b/fastimport/commands.py
index 0a0fce5..43b1f8f 100644
--- a/fastimport/commands.py
+++ b/fastimport/commands.py
@@ -382,6 +382,20 @@ class FileDeleteAllCommand(FileCommand):
def __repr__(self):
return "deleteall"
+class NoteModifyCommand(FileCommand):
+
+ def __init__(self, from_, data):
+ super(NoteModifyCommand, self).__init__('notemodify')
+ self.from_ = from_
+ self.data = data
+ self._binary = ['data']
+
+ def __str__(self):
+ return "N inline :%s" % self.from_
+
+ def __repr__(self):
+ return "%s\ndata %d\n%s" % (self, len(self.data), self.data)
+
def check_path(path):
"""Check that a path is legal.