Jump to content


Accessing Swarm Review Files


  • Please log in to reply
1 reply to this topic

#1 rag

rag

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 09 April 2018 - 05:33 PM

Recently a change list that was under review had some files accidentally deleted from it's shelf, but strangely those files were still in the Swarm review which suggests that Swarm copies those files elsewhere for the purposes of the review. I was wondering if it was possible to access that 'private' shelf some how to recover the deleted files?

#2 P4Reg

P4Reg

    Advanced Member

  • Staff Moderators
  • 92 posts

Posted 10 April 2018 - 09:29 AM

View Postrag, on 09 April 2018 - 05:33 PM, said:

Recently a change list that was under review had some files accidentally deleted from it's shelf, but strangely those files were still in the Swarm review which suggests that Swarm copies those files elsewhere for the purposes of the review. I was wondering if it was possible to access that 'private' shelf some how to recover the deleted files?

It creates a series of shelves to store the content of the files in each revision of a review as described in the "Explain why Swarm has pending changelists" Knowledge Base article.

To access the content of a shelved file in one of the Swarm created changes, from P4V, in pending changes, right click on the shelved file in the Swarm change->Open with

Or from the command line, you should be able to access the shelved content directly using "p4 print  @=changenumber". That will output the content of all the files to the terminal with header lines before each file with the filename.
-You can refer to an individual file with  "p4 print -q //depot/apth/file@=changenumber" (the -q removes the header line).
-You can use the -o option to output directly to a local file (useful for a binary file) "p4 print -o file.txt -q //depot/path/file.txt@=changenumber"


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users