git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv4 1/1] git-p4: add unshelve command

From
Luke Diamand <luke@diamand.org>
Date
May 21, 2018, 22:09 UTC
Message-ID
<CAE5ih7-1LwLxndEdjtGEmoViiZYbspkjymTzWxnnMgVWfNW2_w@mail.gmail.com>
In-Reply-To
<20180521213924.4491-1-szeder.dev@gmail.com>
On 21 May 2018 at 22:39, SZEDER Gábor <szeder.dev@gmail.com> wrote:
>> diff --git a/t/t9832-unshelve.sh b/t/t9832-unshelve.sh

... ...

Show 50 quoted lines
>> +'
>
> This test fails on my box and on Travis CI (in all four standard Linux
> and OSX build jobs) with:
>
>   + cd /home/szeder/src/git/t/trash directory.t9832-unshelve/cli
>   + p4 edit file1
>   //depot/file1#1 - opened for edit
>   + echo a change
>   + echo new file
>   + p4 add file2
>   //depot/file2#1 - opened for add
>   + p4 delete file_to_delete
>   //depot/file_to_delete#1 - opened for delete
>   + p4 opened
>   //depot/file1#1 - edit default change (text)
>   //depot/file2#1 - add default change (text)
>   //depot/file_to_delete#1 - delete default change (text)
>   + p4 shelve -i
>   Change 3 created with 3 open file(s).
>   Shelving files for change 3.
>   edit //depot/file1#1
>   add //depot/file2#1
>   delete //depot/file_to_delete#1
>   Change 3 files shelved.
>   + cd /home/szeder/src/git/t/trash directory.t9832-unshelve/git
>   + last_shelved_change
>   + p4 changes -s shelved -m1
>   + cut -d   -f 2
>   + change=3
>   + git p4 unshelve 3
>   Traceback (most recent call last):
>     File "/home/szeder/src/git/git-p4", line 3975, in <module>
>       main()
>     File "/home/szeder/src/git/git-p4", line 3969, in main
>       if not cmd.run(args):
>     File "/home/szeder/src/git/git-p4", line 3851, in run
>       sync.importChanges(changes, shelved=True,
>   origin_revision=origin_revision)
>     File "/home/szeder/src/git/git-p4", line 3296, in importChanges
>       files = self.extractFilesFromCommit(description, shelved, change,
>   origin_revision)
>     File "/home/szeder/src/git/git-p4", line 2496, in
>   extractFilesFromCommit
>       not self.cmp_shelved(path, file["rev"], origin_revision):
>     File "/home/szeder/src/git/git-p4", line 2467, in cmp_shelved
>       return ret["status"] == "identical"
>   KeyError: 'status'
>   error: last command exited with $?=1
>   not ok 4 - create shelved changelist

It works fine for me - but given where it's failing, my first suspicion would be p4 client version (or server) differences.

I'm using 2015.1 for server and client. Could you check which version you are using?

Thanks, Luke

Previous: SZEDER GáborNext: Luke Diamand
Message 7 of 9 in “[PATCHv4 0/1] git-p4: unshelving: fix for python2.6”
  1. Luke DiamandMay 19, 2018
  2. 1/1 git-p4: add unshelve commandLuke Diamand, May 19, 2018
  3. SZEDER GáborMay 20, 2018
  4. Junio C HamanoMay 21, 2018
  5. Luke DiamandMay 21, 2018
  6. SZEDER GáborMay 21, 2018
  7. Luke DiamandMay 21, 2018
  8. Luke DiamandMay 21, 2018
  9. SZEDER GáborMay 21, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.