summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Simon Hausmann <simon@lst.de>2007-03-14 19:03:16 +0100
committerLibravatar Simon Hausmann <simon@lst.de>2007-03-14 19:03:16 +0100
commit4d9e5fcea65f22c6bd9e1f3e5ae2f79c3af613db (patch)
treedc9be25a9d3e62f49343a23f1f58bcad66426e8f /contrib
parentBe nice and use /usr/bin/env python for the git-p4 scripts (diff)
downloadtgif-4d9e5fcea65f22c6bd9e1f3e5ae2f79c3af613db.tar.xz
Ignore Apple resource files when importing from perforce to git.
Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fast-import/p4-fast-export.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/fast-import/p4-fast-export.py b/contrib/fast-import/p4-fast-export.py
index 6f7bbb0f32..a6dbd3b98d 100755
--- a/contrib/fast-import/p4-fast-export.py
+++ b/contrib/fast-import/p4-fast-export.py
@@ -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: