Re: Git drawbacks?
- From
- Dmitry 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