git-p4: remove commented code

Previously, the script contained commented code including Python 2 print statements. Presumably, these were used as a developer aid at some point in history. However, the commented code is generally undesirable, and this commented code serves no useful purpose. Therefore this patch removes it. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Joel Holdsworth committed Apr 1, 2022 at 15:24 UTC 9084961b2ab74010fa4efb88f72559b3ede5603a
1 file changed -7
git-p4.py
-7
@@ -3583,23 +3583,18 @@ class P4Sync(Command, P4UserMap):
3583 self.gitStream.flush()
3584 branchPrefix = self.depotPaths[0] + branch + "/"
3585 range = "@1,%s" % maxChange
3586 - #print "prefix" + branchPrefix
3586 changes = p4ChangesForPaths([branchPrefix], range, self.changes_block_size)
3587 if len(changes) <= 0:
3588 return False
3589 firstChange = changes[0]
3591 - #print "first change in branch: %s" % firstChange
3590 sourceBranch = self.knownBranches[branch]
3591 sourceDepotPath = self.depotPaths[0] + sourceBranch
3592 sourceRef = self.gitRefForBranch(sourceBranch)
3595 - #print "source " + sourceBranch
3593
3594 branchParentChange = int(p4Cmd(["changes", "-m", "1", "%s...@1,%s" % (sourceDepotPath, firstChange)])["change"])
3598 - #print "branch parent: %s" % branchParentChange
3595 gitParent = self.gitCommitByP4Change(sourceRef, branchParentChange)
3596 if len(gitParent) > 0:
3597 self.initialParents[self.gitRefForBranch(branch)] = gitParent
3602 - #print "parent git commit: %s" % gitParent
3598
3599 self.importChanges(changes)
3600 return True
@@ -3742,8 +3737,6 @@ class P4Sync(Command, P4UserMap):
3737 newestRevision = change
3738
3739 if info["action"] in self.delete_actions:
3745 - # don't increase the file cnt, otherwise details["depotFile123"] will have gaps!
3746 - #fileCnt = fileCnt + 1
3740 continue
3741
3742 for prop in ["depotFile", "rev", "action", "type" ]: