Code

Ignore Apple resource files when importing from perforce to git.
authorSimon Hausmann <simon@lst.de>
Wed, 14 Mar 2007 18:03:16 +0000 (19:03 +0100)
committerSimon Hausmann <simon@lst.de>
Wed, 14 Mar 2007 18:03:16 +0000 (19:03 +0100)
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/p4-fast-export.py

index 6f7bbb0f329ba58faffcae938414435c9f14e3f9..a6dbd3b98dd33ffb62031649dbd2838d450456d5 100755 (executable)
@@ -329,6 +329,10 @@ def commit(details, files, branch, branchPrefix, parent, merged = ""):
         relPath = path[len(branchPrefix):]
         action = file["action"]
 
+        if file["type"] == "apple":
+            print "\nfile %s is a strange apple file that forks. Ignoring!" %s path
+            continue
+
         if action == "delete":
             gitStream.write("D %s\n" % relPath)
         else: