summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0563a45)
raw | patch | inline | side by side (parent: 0563a45)
author | Simon Hausmann <hausmann@kde.org> | |
Wed, 14 Feb 2007 16:16:14 +0000 (02:16 +1000) | ||
committer | Simon Hausmann <hausmann@kde.org> | |
Wed, 14 Feb 2007 16:16:14 +0000 (02:16 +1000) |
Signed-off-by: Simon Hausmann <hausmann@kde.org>
contrib/fast-import/p4-fast-export.py | patch | blob | history |
index b5dc6f676761e268f7e445ddf53d3ec591a1fd15..76c4b9d3230dfff589ea2fb9f7da30a0e339cf17 100755 (executable)
#
import os, string, sys, time
import marshal, popen2, getopt
+from sets import Set;
-knownBranches = set()
-committedChanges = set()
+knownBranches = Set()
+committedChanges = Set()
branch = "refs/heads/master"
globalPrefix = previousDepotPath = os.popen("git-repo-config --get p4.depotpath").read()
detectBranches = False
def branchesForCommit(files):
global knownBranches
- branches = set()
+ branches = Set()
for file in files:
relativePath = file["path"][len(globalPrefix):]
gitStream.write("from %s\n" % initialParent)
initialParent = ""
- #mergedBranches = set()
- merges = set()
+ #mergedBranches = Set()
+ merges = Set()
for file in files:
if lastChange == 0:
if len(changesFile) > 0:
output = open(changesFile).readlines()
- changeSet = set()
+ changeSet = Set()
for line in output:
changeSet.add(int(line))