Thread (1 message) 1 message, 1 author, 2019-01-14

Re: [PATCH 1/2] git-p4: add failing test for shelved CL update involving move

From: Junio C Hamano <hidden>
Date: 2019-01-14 19:03:13

Eric Sunshine [off-list ref] writes:
On Sun, Jan 13, 2019 at 8:58 AM Luke Diamand [off-list ref] wrote:
quoted
Updating a shelved P4 changelist where one or more of the files have
been moved does not work. Add a test for this.
Perhaps this message could give more detail about the actual problem
than the generic "does not work" which provides no useful information.
quoted
Signed-off-by: Luke Diamand <redacted>
---
diff --git a/t/t9807-git-p4-submit.sh b/t/t9807-git-p4-submit.sh
@@ -500,6 +500,12 @@ test_expect_success 'submit --shelve' '
+last_shelve() {
+       change=$(p4 -G changes -s shelved -m 1 //depot/... | \
+               marshal_dump change)
+       echo $change
+}
A simpler definition for this function would be:

last_shelve () {
    p4 -G changes -s shelved -m 1 //depot/... | marshal_dump change
}
Indeed, and it will work better even when the output from marshal_dump
has $IFS and other traits that do not survive "echo $change" intact.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help