git p4: handle servers without move support
commit249da4c0dcd0534f416e2d5da0a9923c6068e492
authorPete Wyckoff <pw@padd.com>
Fri, 23 Nov 2012 22:35:35 +0000 (23 17:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2012 18:59:57 +0000 (26 10:59 -0800)
treea77889108234d68a49ab7b55df201a7dd8e981ce
parent18fa13d0b34b6243d3679ea78325ee33ee4d0989
git p4: handle servers without move support

Support for the "p4 move" command was added in 8e9497c (git p4:
add support for 'p4 move' in P4Submit, 2012-07-12), which checks
to make sure that the client and server support the command.

But older versions of p4d may not handle the "-k" argument, and
newer p4d allow disabling "p4 move" with a configuration setting.
Check for both these cases by testing a p4 move command on bogus
filenames and looking for strings in the error messages.

Reported-by: Vitor Antunes <vitor.hda@gmail.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9814-git-p4-rename.sh