if tzsign != '+' and tzsign != '-':
tz = "+" + ("%s" % tz)
+gitOutput, gitStream, gitError = popen2.popen3("git-fast-import")
+
if len(revision) > 0:
print "Doing initial import of %s from revision %s" % (prefix, revision)
details["change"] = newestRevision
- gitOutput, gitStream, gitError = popen2.popen3("git-fast-import")
try:
commit(details)
except:
print gitError.read()
- gitStream.close()
- gitOutput.close()
- gitError.close()
else:
output = os.popen("p4 changes %s...%s" % (prefix, changeRange)).readlines()
print "no changes to import!"
sys.exit(1)
- gitOutput, gitStream, gitError = popen2.popen3("git-fast-import")
-
cnt = 1
for change in changes:
description = p4Cmd("describe %s" % change)
print gitError.read()
sys.exit(1)
- gitStream.close()
- gitOutput.close()
- gitError.close()
-
print ""
+gitStream.close()
+gitOutput.close()
+gitError.close()
+
os.popen("git-repo-config p4.depotpath %s" % prefix).read()
sys.exit(0)