Set git fast-import marks for every imported change for future use.
authorSimon Hausmann <simon@lst.de>
Mon, 12 Feb 2007 20:56:46 +0000 (21:56 +0100)
committerSimon Hausmann <simon@lst.de>
Mon, 12 Feb 2007 20:56:46 +0000 (21:56 +0100)
Signed-off-by: Simon Hausmann <simon@lst.de>
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)