Code

git-p4: fix submit regression with clientSpec and subdir clone
authorPete Wyckoff <pw@padd.com>
Sun, 26 Feb 2012 01:06:25 +0000 (20:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2012 00:14:29 +0000 (16:14 -0800)
commit543987bd475abae502939eb3db9c6879fde09c88
treebd4dfe130eac3d9787c449b34d8895c685f93557
parenta93d33ee7bf2f1cd41f94470e9e44e0fc9307046
git-p4: fix submit regression with clientSpec and subdir clone

When the --use-client-spec is given to clone, and the clone
path is a subset of the full tree as specified in the client,
future submits will go to the wrong place.

Factor out getClientSpec() so both clone/sync and submit can
use it.  Introduce getClientRoot() that is needed for the client
spec case, and use it instead of p4Where().

Test the five possible submit behaviors (add, modify, rename,
copy, delete).

Reported-by: Laurent Charrière <lcharriere@promptu.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/git-p4
t/t9809-git-p4-client-view.sh