#
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))