git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/3] git p4: remove unused P4Submit interactive setting

From
PWPete Wyckoff <pw@padd.com>
Date
Jul 4, 2012, 13:49 UTC
Message-ID
<20120704134918.GA28164@padd.com>
In-Reply-To
<1341408860-26965-2-git-send-email-pw@padd.com>
The "diff -w" version looks like this.  A bit easier to review.
--->8---
>From 3327945176be35081f2c86bc40b294ed9f73ea9a Mon Sep 17 00:00:00 2001
From: Pete Wyckoff <pw@padd.com>
Date: Sun, 24 Jun 2012 15:39:18 -0400
Subject: [PATCH] git p4: remove unused P4Submit interactive setting
The code is unused.  Delete.
Signed-off-by: Pete Wyckoff <pw@padd.com>
---
 git-p4.py | 12 ------------
 1 file changed, 12 deletions(-)
diff --git a/git-p4.py b/git-p4.py
index f895a24..542c20a 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -844,7 +844,6 @@ class P4Submit(Command, P4UserMap):
         ]
         self.description = "Submit changes from git to the perforce depot."
         self.usage += " [name of git branch to submit into perforce depot]"
-        self.interactive = True
         self.origin = ""
         self.detectRenames = False
         self.preserveUser = gitConfig("git-p4.preserveUser").lower() == "true"
@@ -1209,7 +1208,6 @@ class P4Submit(Command, P4UserMap):
 
         template = self.prepareSubmitTemplate()
 
-        if self.interactive:
         submitTemplate = self.prepareLogMessage(template, logMessage)
 
         if self.preserveUser:
@@ -1281,14 +1279,6 @@ class P4Submit(Command, P4UserMap):
                 os.remove(f)
 
         os.remove(fileName)
-        else:
-            fileName = "submit.txt"
-            file = open(fileName, "w+")
-            file.write(self.prepareLogMessage(template, logMessage))
-            file.close()
-            print ("Perforce submit template written as %s. "
-                   + "Please review/edit and then use p4 submit -i < %s to submit directly!"
-                   % (fileName, fileName))
 
     # Export git tags as p4 labels. Create a p4 label and then tag
     # with that.
@@ -1437,8 +1427,6 @@ class P4Submit(Command, P4UserMap):
             commit = commits[0]
             commits = commits[1:]
             self.applyCommit(commit)
-            if not self.interactive:
-                break
 
         if len(commits) == 0:
             print "All changes applied!"
-- 
1.7.11.1.125.g4a65fea
Previous: Pete WyckoffNext: Luke Diamand
Message 3 of 8 in “git p4: notice Jobs: section in submit”
  1. 0/3 git p4: notice Jobs: section in submitPete Wyckoff, Jul 4, 2012
  2. 1/3 git p4: remove unused P4Submit interactive settingPete Wyckoff, Jul 4, 2012
  3. Pete WyckoffJul 4, 2012
  4. Luke DiamandJul 5, 2012
  5. Pete WyckoffJul 5, 2012
  6. Pete WyckoffJul 14, 2012
  7. 2/3 git p4 test: refactor marshal_dumpPete Wyckoff, Jul 4, 2012
  8. 3/3 git p4: notice Jobs lines in git commit messagesPete Wyckoff, Jul 4, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.