git-p4: add failing test for shelved CL update involving move/copy
commit7a10bb3a4cc6fb5165d880cfb0be3a2eff438c95
authorLuke Diamand <luke@diamand.org>
Fri, 18 Jan 2019 09:36:55 +0000 (18 09:36 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2019 17:43:34 +0000 (18 09:43 -0800)
tree59fcc367187f7d71a03987f396dfc3d3aa024429
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c
git-p4: add failing test for shelved CL update involving move/copy

Updating a shelved P4 changelist where one or more files have
been moved or copied does not work. Add a test for this.

The problem is that P4 requires a complete list of the files being
changed, and move/copy only includes the _source_ in the case of
updating a shelved changelist. This results in errors from Perforce
such as:

  //depot/src - needs tofile //depot/dst
  Submit aborted -- fix problems then use 'p4 submit -c 1234'

Signed-off-by: Luke Diamand <luke@diamand.org>
Acked-by: Andrey Mazo <amazo@checkvideo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9807-git-p4-submit.sh