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

Re: [PATCH v4] git-p4: Use -m when running p4 changes

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 20, 2015, 18:04 UTC
Message-ID
<xmqq383un0b5.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqq7ft6n0rn.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> Luke Diamand <luke@diamand.org> writes:
>
>> Sorry - could you resubmit your patch (PATCHv4 it will be) with this
>> change squashed in please? It will make life much easier, especially
>> for Junio!
>
> Thanks for caring, but this seems to be a full patch to replace v3.
>
> It was sent with your Reviewed-by already in, but I'd tentatively
> remove that line while queuing it to 'pu' and ask you to double
> check if the patch makes sense (and after your "yes, it does", I'd
> add the Reviewed-by back).
>
> Thanks.

Just to make it easier to see, the interdiff between v3 and v4 looks like this:

 git-p4.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/git-p4.py b/git-p4.py
index 1fba3aa..e28033f 100755
--- a/git-p4.py
+++ b/git-p4.py
@@ -2608,7 +2608,7 @@ class P4Sync(Command, P4UserMap):
 
         return ""
 
-    def importNewBranch(self, branch, maxChange, changes_block_size):
+    def importNewBranch(self, branch, maxChange):
         # make fast-import flush all changes to disk and update the refs using the checkpoint
         # command so that we can try to find the branch parent in the git history
         self.gitStream.write("checkpoint\n\n");
@@ -2616,7 +2616,7 @@ class P4Sync(Command, P4UserMap):
         branchPrefix = self.depotPaths[0] + branch + "/"
         range = "@1,%s" % maxChange
         #print "prefix" + branchPrefix
-        changes = p4ChangesForPaths([branchPrefix], range, changes_block_size)
+        changes = p4ChangesForPaths([branchPrefix], range, self.changes_block_size)
         if len(changes) <= 0:
             return False
         firstChange = changes[0]
Previous: Junio C HamanoNext: Lex Spoon
Message 14 of 15 in “Re: [PATCH] git-p4: Use -m when running p4 changes”
  1. Luke DiamandApr 14, 2015
  2. Lex SpoonApr 15, 2015
  3. Junio C HamanoApr 16, 2015
  4. Luke DiamandApr 16, 2015
  5. Lex SpoonApr 17, 2015
  6. git-p4: Use -m when running p4 changesLex Spoon, Apr 17, 2015
  7. Luke DiamandApr 20, 2015
  8. Lex SpoonApr 20, 2015
  9. git-p4: Use -m when running p4 changesLex Spoon, Apr 20, 2015
  10. Luke DiamandApr 20, 2015
  11. Lex SpoonApr 20, 2015
  12. Luke DiamandApr 20, 2015
  13. Junio C HamanoApr 20, 2015
  14. Junio C HamanoApr 20, 2015
  15. Lex SpoonApr 14, 2015

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.