summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dcacf8b)
raw | patch | inline | side by side (parent: dcacf8b)
author | Simon Hausmann <simon@lst.de> | |
Mon, 12 Feb 2007 20:44:02 +0000 (21:44 +0100) | ||
committer | Simon Hausmann <simon@lst.de> | |
Mon, 12 Feb 2007 20:44:02 +0000 (21:44 +0100) |
Signed-off-by: Simon Hausmann <simon@lst.de>
contrib/fast-import/p4-fast-export.py | patch | blob | history |
index f9653f1344f5a1ec00e0fe26d95194839f2432b2..5838ca3c684959a351b6dbce99dd28b02182967b 100755 (executable)
gitStream.write("from %s\n" % initialParent)
initialParent = ""
+ mergedBranches = set()
+
for file in files:
path = file["path"]
if not path.startswith(branchPrefix):
relPath = source[len(globalPrefix):]
for branch in knownBranches:
- if relPath.startswith(branch):
+ if relPath.startswith(branch) and branch not in mergedBranches:
gitStream.write("merge refs/heads/%s\n" % branch)
+ mergedBranches.add(branch)
break
for file in files: