Set git fast-import marks for every imported change for future use.
[gitweb.git] / contrib / fast-import / p4-fast-export.py
index 5838ca3c684959a351b6dbce99dd28b02182967b..488533b07e094d5f94e0ae516d9c657ef76a25a4 100755 (executable)
@@ -154,6 +154,7 @@ def commit(details, files, branch, branchPrefix):
     author = details["user"]
 
     gitStream.write("commit %s\n" % branch)
+    gitStream.write("mark :%s\n" % details["change"])
     committer = ""
     if author in users:
         committer = "%s %s %s" % (users[author], epoch, tz)