Obey p4 views when using client spec
commit3952710bfaa46917fd0c3a9b29d076ec013d6b6a
authorIan Wienand <ianw@vmware.com>
Sat, 12 Feb 2011 00:33:48 +0000 (11 16:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Feb 2011 18:34:49 +0000 (14 10:34 -0800)
treee94e243b20443d8a32cd3a2221b9d504565cf380
parentcbef0db6ccf6e2e57ffe74ba73dc91a0fbbf5760
Obey p4 views when using client spec

When using the p4 client spec, this attempts to obey the client's
output preferences.

For example, a view like

//depot/foo/branch/... //client/branch/foo/...
//depot/bar/branch/... //client/branch/bar/...

will result in a directory layout in the git tree of

branch/
branch/foo
branch/bar

p4 can do various other reordering that this change doesn't support,
but we should detect it and at least fail nicely.

Signed-off-by: Ian Wienand <ianw@vmware.com>
Acked-by: Pete Wyckoff <pw@padd.com>
Acked-by: Tor Arvid Lund <torarvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4
contrib/fast-import/git-p4.txt