1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-18 04:16:10 +02:00

Fixed the initial version import by getting the file index correct by correctly skipping deleted files.

Signed-off-by: Simon Hausmann <hausmann@kde.org>
This commit is contained in:
Simon Hausmann 2007-03-20 21:13:49 +01:00
parent 0828ab1403
commit c715706b15

View File

@ -480,7 +480,7 @@ def findBranchParent(self, branchPrefix, files):
return ""
def commit(self, details, files, branch, branchPrefix, parent, merged = ""):
def commit(self, details, files, branch, branchPrefix, parent = "", merged = ""):
epoch = details["time"]
author = details["user"]
@ -757,6 +757,7 @@ def run(self, args):
newestRevision = change
if info["action"] == "delete":
fileCnt = fileCnt + 1
continue
for prop in [ "depotFile", "rev", "action", "type" ]:
@ -768,7 +769,7 @@ def run(self, args):
try:
self.commit(details, self.extractFilesFromCommit(details), self.branch, self.globalPrefix)
except:
except IOError:
print self.gitError.read()
else: