aboutsummaryrefslogtreecommitdiffstats
path: root/git-p4.py
diff options
context:
space:
mode:
authorJoel Holdsworth <jholdsworth@nvidia.com>2022-04-01 15:24:48 +0100
committerJunio C Hamano <gitster@pobox.com>2022-04-01 13:15:43 -0700
commit9084961b2ab74010fa4efb88f72559b3ede5603a (patch)
tree52da75f45460ef1d00f3da75dfcc82c6a6fe707a /git-p4.py
parent522e914f65da504f6b485dd8a89f49f7f176bbd0 (diff)
downloadgit-9084961b2ab74010fa4efb88f72559b3ede5603a.tar.gz
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>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/git-p4.py b/git-p4.py
index 892b964eec..53e99f81b7 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -3583,23 +3583,18 @@ class P4Sync(Command, P4UserMap):
self.gitStream.flush()
branchPrefix = self.depotPaths[0] + branch + "/"
range = "@1,%s" % maxChange
- #print "prefix" + branchPrefix
changes = p4ChangesForPaths([branchPrefix], range, self.changes_block_size)
if len(changes) <= 0:
return False
firstChange = changes[0]
- #print "first change in branch: %s" % firstChange
sourceBranch = self.knownBranches[branch]
sourceDepotPath = self.depotPaths[0] + sourceBranch
sourceRef = self.gitRefForBranch(sourceBranch)
- #print "source " + sourceBranch
branchParentChange = int(p4Cmd(["changes", "-m", "1", "%s...@1,%s" % (sourceDepotPath, firstChange)])["change"])
- #print "branch parent: %s" % branchParentChange
gitParent = self.gitCommitByP4Change(sourceRef, branchParentChange)
if len(gitParent) > 0:
self.initialParents[self.gitRefForBranch(branch)] = gitParent
- #print "parent git commit: %s" % gitParent
self.importChanges(changes)
return True
@@ -3742,8 +3737,6 @@ class P4Sync(Command, P4UserMap):
newestRevision = change
if info["action"] in self.delete_actions:
- # don't increase the file cnt, otherwise details["depotFile123"] will have gaps!
- #fileCnt = fileCnt + 1
continue
for prop in ["depotFile", "rev", "action", "type" ]: