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

Re: git-p4 workflow suggestions?

From
Sam Hocevar <sam@zoy.org>
Date
Mar 20, 2009, 10:31 UTC
Message-ID
<20090320103125.GP27280@zoy.org>
In-Reply-To
<20090317151815.GA2451@padd.com>
On Tue, Mar 17, 2009, Pete Wyckoff wrote:
Show 17 quoted lines
> Can you take a look at the attached.  Its goal is purely to allow
> you to clone a complex spec like yours above.  You may have to merge
> this in with your perrformance changes.
> 
> Edit your ~/.gitconfig to add a section:
> 
> 	[git-p4]
> 		useClientSpec = true
> 
> Then copy a good P4ENV from a p4 client that has a client spec
> checked out as you like.  git-p4 clone will do "p4 client -o",
> reading that spec, and use the results to import, hopefully as
> you have things laid out in the spec.
> 
> If this seems to work for you, we can figure out how to clean up
> the patch so it can be used generally by people with and without
> client specs.
   I am afraid I don't know what a "P4ENV" is. However, our P4
repository is set up in such a way that "p4 client -o" shows the
expected mappings, so I just commented out the P4ENV check and I finally
managed to clone my gigantic repository.
   One concern: git-p4 clone creates .git in the current directory and
it caused me to do at least one unfortunate "rm -rf .git". I would
expect clone to create a subdirectory.
   Apart from that, "clone" seems to work rather well. I haven't tried
to submit a commit yet, though.
-- 
Sam.
Previous: Pete Wyckoff
Message 8 of 8 in “git-p4 workflow suggestions?”
  1. Sam HocevarMar 9, 2009
  2. Christian CouderMar 10, 2009
  3. Sam HocevarMar 10, 2009
  4. Christian CouderMar 11, 2009
  5. Pete WyckoffMar 11, 2009
  6. Sam HocevarMar 16, 2009
  7. Pete WyckoffMar 17, 2009
  8. Sam HocevarMar 20, 2009

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.