OSDN Git Service

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 5838ca3..488533b 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)