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

[PATCHv1] git-p4: label import, tag export

From
Luke Diamand <luke@diamand.org>
Date
Apr 3, 2012, 07:38 UTC
Message-ID
<1333438715-14902-1-git-send-email-luke@diamand.org>

This is an updated version of my earlier RFC/patch for importing p4 labels into git, incorporating comments from Pete Wyckoff, and git export support.

It operates by getting the sets of git tags and p4 labels, finding out what is missing, and creating tags/labels as necessary. This is in contrast to the existing detect-labels code which looks for p4 labels associated with the changelist being imported and which therefore misses tags on older changelists.

Git tag export is done during the sync phase because that's when the commit/changelist mapping is first known.

There is also a small fix to t9800 for a problem I found while testing this.

Luke Diamand (2):
  git-p4: fix t9800 editor check
  git-p4: import/export of labels to/from p4
 Documentation/git-p4.txt       |   39 ++++++-
 contrib/fast-import/git-p4     |  249 ++++++++++++++++++++++++++++++++++------
 t/t9800-git-p4-basic.sh        |    4 +-
 t/t9811-git-p4-label-import.sh |  145 +++++++++++++++++++++++
 4 files changed, 400 insertions(+), 37 deletions(-)
 create mode 100755 t/t9811-git-p4-label-import.sh
-- 
1.7.10.rc0.158.gd9e55
Next: Luke Diamand
Message 1 of 5 in “[PATCHv1] git-p4: label import, tag export”
  1. Luke DiamandApr 3, 2012
  2. 1/2 git-p4: fix t9800 editor checkLuke Diamand, Apr 3, 2012
  3. 2/2 git-p4: import/export of labels to/from p4Luke Diamand, Apr 3, 2012
  4. Vitor AntunesApr 3, 2012
  5. Luke DiamandApr 5, 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.