summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 43cc31e)
raw | patch | inline | side by side (parent: 43cc31e)
author | Simon Hausmann <hausmann@kde.org> | |
Sat, 10 Mar 2007 20:23:49 +0000 (21:23 +0100) | ||
committer | Simon Hausmann <hausmann@kde.org> | |
Sat, 10 Mar 2007 20:23:49 +0000 (21:23 +0100) |
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py | patch | blob | history |
index d0832e8c3d618a4f8d73053adefd62af14b3dae1..a45068d362df70de0d3ebe45a6111ac7696dee31 100755 (executable)
for fileName in sourceFiles.keys():
integrations = []
deleted = False
+ integrationCount = 0
for integration in p4CmdList("integrated \"%s\"" % fileName):
toFile = integration["fromFile"] # yes, it's true, it's fromFile
if not toFile in destinationFiles:
# print "file %s has been deleted in %s" % (fileName, toFile)
deleted = True
break
+ integrationCount += 1
+ if integration["how"] == "branch from":
+ continue
if int(integration["change"]) == change:
integrations.append(integration)
continue
+ if int(integration["change"]) > change:
+ continue
destRev = int(destFile["rev"])
if deleted:
continue
- if len(integrations) == 0:
+ if len(integrations) == 0 and integrationCount > 1:
print "file %s was not integrated from %s into %s" % (fileName, sourceBranch, destinationBranch)
return False