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

git-p4 issue

From
MHMichael Horowitz <michael.horowitz@ieee.org>
Date
Feb 24, 2011, 21:12 UTC
Message-ID
<AANLkTi=2evJB9Pffoo43bB6+qjUsG71t4o=pqHcu2Hzu@mail.gmail.com>
In-Reply-To
<AANLkTi=b60kqd6fRXzf39BBepLOeA3ts6EN3AuY0iAp4@mail.gmail.com>
Hello,

I ran into an issue with git-p4 and was given a fix described below by someone assisting me, but I am not a Python developer...

... By looking at the git-p4 code turns out that in the prepareLogMessage function, everything between the Description and Files section of the p4 change specification is skipped. The Jobs section happens to be between Description and Files...

Good thing the fix is simple, in the prepareLogMessage function, just add this:
    if inDescriptionSection:
-       if line.startswith("Files:"):
+       if line.startswith("Files:") or line.startswith("Jobs:"):

And you should now see your jobs appear in the p4 change specification. ...

Given the simple nature of it, I was hoping someone could help get this fixed in the main git distro.

-- 
Mike
Message 1 of 1 in “git-p4 issue”
  1. Michael HorowitzFeb 24, 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.