Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Use sets.Set() instead of set() to run also with older versions of Python.
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
raw
|
patch
|
inline
| side by side (parent:
0563a45
)
diff --git
a/contrib/fast-import/p4-fast-export.py
b/contrib/fast-import/p4-fast-export.py
index b5dc6f676761e268f7e445ddf53d3ec591a1fd15..76c4b9d3230dfff589ea2fb9f7da30a0e339cf17 100755
(executable)
--- a/
contrib/fast-import/p4-fast-export.py
+++ b/
contrib/fast-import/p4-fast-export.py
@@
-11,9
+11,10
@@
#
import os, string, sys, time
import marshal, popen2, getopt
#
import os, string, sys, time
import marshal, popen2, getopt
+from sets import Set;
-knownBranches =
s
et()
-committedChanges =
s
et()
+knownBranches =
S
et()
+committedChanges =
S
et()
branch = "refs/heads/master"
globalPrefix = previousDepotPath = os.popen("git-repo-config --get p4.depotpath").read()
detectBranches = False
branch = "refs/heads/master"
globalPrefix = previousDepotPath = os.popen("git-repo-config --get p4.depotpath").read()
detectBranches = False
@@
-129,7
+130,7
@@
def isSubPathOf(first, second):
def branchesForCommit(files):
global knownBranches
def branchesForCommit(files):
global knownBranches
- branches =
s
et()
+ branches =
S
et()
for file in files:
relativePath = file["path"][len(globalPrefix):]
for file in files:
relativePath = file["path"][len(globalPrefix):]
@@
-205,8
+206,8
@@
def commit(details, files, branch, branchPrefix):
gitStream.write("from %s\n" % initialParent)
initialParent = ""
gitStream.write("from %s\n" % initialParent)
initialParent = ""
- #mergedBranches =
s
et()
- merges =
s
et()
+ #mergedBranches =
S
et()
+ merges =
S
et()
for file in files:
if lastChange == 0:
for file in files:
if lastChange == 0:
@@
-366,7
+367,7
@@
def getUserMap():
if len(changesFile) > 0:
output = open(changesFile).readlines()
if len(changesFile) > 0:
output = open(changesFile).readlines()
- changeSet =
s
et()
+ changeSet =
S
et()
for line in output:
changeSet.add(int(line))
for line in output:
changeSet.add(int(line))