git p4: revert deleted files after submit cancel
authorPete Wyckoff <pw@padd.com>
Sun, 9 Sep 2012 20:16:09 +0000 (16:16 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2012 04:52:52 +0000 (21:52 -0700)
commitdf9c5453b220923d7ec3e6291498d519596e23ed
tree59585964bd82092c3303fe063cfa100e73311611
parent55ac2ed6f56c153bc71dc80eb7634e2df2747670
git p4: revert deleted files after submit cancel

The user can decide not to continue with a submission,
by not saving the p4 submit template, then answering "no" to
the "Submit anyway?" prompt.  In this case, be sure to
return the p4 client to its initial state.

Deleted files were not reverted; fix this and test all cases.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Acked-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
t/t9815-git-p4-submit-fail.sh