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

Re: git-p4.skipSubmitEdit

From
MHMichael Horowitz <michael.horowitz@ieee.org>
Date
Dec 16, 2011, 15:38 UTC
Message-ID
<CAFLRboo8DBk3zFEBF9OqKmre=d5PM7+3J9V0pHNz53MPtqjOWA@mail.gmail.com>
In-Reply-To
<20111020011610.GA7292@arf.padd.com>
All,

It appears that this change has introduced a bug that causes submit to fail every time if you do not skip the submit edit.

From what I can tell, this is because the new edit_template method does not return True at the end.

Thanks,
Mike
On Wed, Oct 19, 2011 at 9:16 PM, Pete Wyckoff <pw@padd.com> wrote:
Show 33 quoted lines
> luke@diamand.org wrote on Tue, 18 Oct 2011 18:53 +0100:
>> Looks good, one minor nit (see below) and a comment.
> [..]
>> >+        # invoke the editor
>> >+        if os.environ.has_key("P4EDITOR"):
>> >+            editor = os.environ.get("P4EDITOR")
>> >+        else:
>> >+            editor = read_pipe("git var GIT_EDITOR").strip()
>> >+        system(editor + " " + template_file)
>>
>> This is where we should really check the return code. However, doing
>> so seems to break lots of the existing tests so it's not as easy as
>> it looks.
>
> Indeed.  I'll not fix that now, but agree it should be.
>
>> >+
>> >+        # If the file was not saved, prompt to see if this patch should
>> >+        # be skipped.  But skip this verification step if configured so.
>> >+        if gitConfig("git-p4.skipSubmitEditCheck") == "true":
>> >+            print "return true for skipSubmitEditCheck"
>>
>> You print a helpful/annoying(?) message here, but not further up at
>> skipSubmitEdit?
>
> Aargh.  Leaked debug code.  Thanks for noticing.  I got rid of
> it.
>
>                -- Pete
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Pete WyckoffNext: Luke Diamand
Message 13 of 17 in “git-p4.skipSubmitEdit”
  1. L. A. Linden LevySep 8, 2011
  2. Vitor AntunesSep 9, 2011
  3. Luke DiamandSep 9, 2011
  4. L. A. Linden LevySep 9, 2011
  5. Luke DiamandSep 10, 2011
  6. Luke DiamandSep 12, 2011
  7. L. A. Linden LevySep 12, 2011
  8. Pete WyckoffOct 18, 2011
  9. L. A. Linden LevyOct 18, 2011
  10. Pete WyckoffOct 18, 2011
  11. Luke DiamandOct 18, 2011
  12. Pete WyckoffOct 20, 2011
  13. Michael HorowitzDec 16, 2011
  14. Luke DiamandDec 16, 2011
  15. Michael HorowitzDec 17, 2011
  16. Michael HorowitzDec 17, 2011
  17. git-p4: fix skipSubmitEdit regressionPete Wyckoff, Dec 17, 2011

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.