git p4: catch p4 describe errors
commit18fa13d0b34b6243d3679ea78325ee33ee4d0989
authorPete Wyckoff <pw@padd.com>
Fri, 23 Nov 2012 22:35:34 +0000 (23 17:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2012 18:59:08 +0000 (26 10:59 -0800)
treeb6dfcbc64a5443bb61ff61e753d5427b433a1c42
parentf7d8e3d01f46ecfa5b4bc8c13640831d97a78236
git p4: catch p4 describe errors

Group the two calls to "p4 describe" into a new helper function,
and try to validate the p4 results.  The current behavior when p4
describe fails is to die with a python backtrace.  The new behavior
will print the full response.

This does not solve any particular problem, but adds more
checking in hopes of narrowing down odd behavior seen on
at least two occasions.

Based-on-patch-by: Matt Arsenault <arsenm2@gmail.com>
Reported-by: Arthur <a.foulon@amesys.fr>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py