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

Re: Git drawbacks?

From
DSDmitry Smirnov <divis1969@gmail.com>
Date
Nov 11, 2009, 10:21 UTC
Message-ID
<loom.20091111T105932-300@post.gmane.org>
In-Reply-To
<loom.20091106T160709-387@post.gmane.org>
Dmitry Smirnov <divis1969 <at> gmail.com> writes:
Ok, I have heard a lot of perfect words about Git. I'm almost on your side :-)

Just need some advice on (small for Git, I hope) problem. I'm trying to import P4 depot into Git (for mirroring purpose). It seems a non-trivial task with the current git-p4 script. Perhaps, I had selected a wrong way: i'm trying to import some client.

In fact, as I said in previous mails, typically I have few similar clients. So, maybe it is simpler to import some set of branches (which I suppose a little bit simpler with git-p4).

Unfortunaley, the directory structure of the depot differs from client's (i.e. working tree differs from repository tree). For example, //depot/component/version could be mapped to the <root_of_working_tree>/component.

Thus if I import //depot/component/version1 and //depot/component/version2 as is, I should be able to checkout either version1 or version2. Note that there could be few components in the same working tree:

//depot/component1/version1 (mapped to <root>/component1) //depot/component2/versionX (mapped to <root>/component2) //depot/component3/versionY (mapped to <root>/component3)

With Perforce, there could also be a more complex mappings, but maybe we will discuss it later).

Is there any way to make this mapping with Git? Should I invent some kind of tool like 'repo' or there is a simpler way?

Dmitry
 
Previous: Dmitry Smirnov
Message 27 of 27 in “Git drawbacks?”
  1. Dmitry SmirnovNov 6, 2009
  2. Avery PennarunNov 6, 2009
  3. Dmitry SmirnovNov 6, 2009
  4. Jacob HelwigNov 6, 2009
  5. Avery PennarunNov 6, 2009
  6. david@lang.hmNov 6, 2009
  7. Dmitry SmirnovNov 9, 2009
  8. Jacob HelwigNov 9, 2009
  9. Dmitry SmirnovNov 9, 2009
  10. Jacob HelwigNov 9, 2009
  11. Dmitry PotapovNov 9, 2009
  12. Dmitry SmirnovNov 9, 2009
  13. Dmitry PotapovNov 9, 2009
  14. Dmitry SmirnovNov 10, 2009
  15. Dmitry PotapovNov 10, 2009
  16. Dmitry SmirnovNov 10, 2009
  17. Paolo BonziniNov 10, 2009
  18. B Smith-MannschottNov 9, 2009
  19. Dmitry PotapovNov 9, 2009
  20. Dmitry SmirnovNov 10, 2009
  21. Dmitry PotapovNov 10, 2009
  22. Dmitry SmirnovNov 10, 2009
  23. Paolo BonziniNov 10, 2009
  24. Dmitry PotapovNov 10, 2009
  25. Dmitry SmirnovNov 10, 2009
  26. Dmitry SmirnovNov 9, 2009
  27. Dmitry SmirnovNov 11, 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.