From: Simon Hausmann Date: Tue, 20 Mar 2007 20:13:49 +0000 (+0100) Subject: Fixed the initial versioned import X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=f3340699f312bf7e3873e34698e12ec77546d016;p=python%2Ffast-export.git Fixed the initial versioned import --- diff --git a/git-p4.py b/git-p4.py index 8cb63f9..54ddf73 100755 --- a/git-p4.py +++ b/git-p4.py @@ -480,7 +480,7 @@ class GitSync(Command): 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 @@ class GitSync(Command): newestRevision = change if info["action"] == "delete": + fileCnt = fileCnt + 1 continue for prop in [ "depotFile", "rev", "action", "type" ]: @@ -768,7 +769,7 @@ class GitSync(Command): try: self.commit(details, self.extractFilesFromCommit(details), self.branch, self.globalPrefix) - except: + except IOError: print self.gitError.read() else: