git-commit-vandalism/contrib/fast-import
Tor Arvid Lund 7f705dc368 git-p4: Fix bug in p4Where method.
When running:

p4 where //depot/SomePath/...

The result can in some situations look like:

//depot/SomePath/... //client/SomePath/... /home/user/p4root/SomePath/...
-//depot/SomePath/UndesiredSubdir/... //client/SomePath/UndesiredSubdir/... /home/user/p4root/SomePath/UndesiredSubdir/...

This depends on the users Client view. The current p4Where method will now
return /home/user/p4root/SomePath/UndesiredSubdir/... which is not what we
want. This patch loops through the results from "p4 where", and picks the one
where the depotFile exactly matches the given depotPath (//depot/SomePath/...
in this example).

Signed-off-by: Tor Arvid Lund <torarvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-12-04 18:44:16 -08:00
..
git-import.perl contrib/fast-import: add perl version of simple example 2007-09-18 03:14:18 -07:00
git-import.sh contrib/fast-import: add simple shell example 2007-09-18 03:14:16 -07:00
git-p4 git-p4: Fix bug in p4Where method. 2008-12-04 18:44:16 -08:00
git-p4.bat Make the command call silent 2007-05-15 16:07:41 +02:00
git-p4.txt Clean up the git-p4 documentation 2008-08-24 12:00:14 -07:00
import-tars.perl Merge branch 'maint' 2007-05-16 12:43:05 -07:00
import-zips.py Add another fast-import example, this time for .zip files 2008-07-01 00:48:17 -07:00