Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

move shelved files in one workspace to another workspace perforce - file(s) not in client view

Tags:

perforce

p4v

I have workspace1 that has some shelved changes. Now I need that shelf to be moved to workspace2. I am trying the following command with no luck. you can see the error I am getting as well.

C:\source\workspace1>p4 -c workspace1 unshelve -s changelistworkspace1# [-f] [-n] [-c changelistworkspace2#] [-S workspace2Stream]

The errors:

[-f] - file(s) not in client view.
<br />
[-n] - file(s) not in client view.
<br />
[-c - file(s) not in client view.
<br />
changelistworkspace2#] - file(s) notin client view.
<br />
[-S - file(s) not in client view. 
<br />
workspace2Stream] - file(s) not in client view.

I am quite new to perforce so excuse me if this an easy task that I am having issues with. The resource i am using to guide me is:

http://www.perforce.com/perforce/doc.current/manuals/cmdref/p4_unshelve.html

I have also goggled with no luck. I also found a resource that said there was an option in the unshelve dialog of P4V however i do not have that option.

like image 216
Aaron Avatar asked Jun 25 '14 19:06

Aaron


People also ask

What does Unshelve mean in Perforce?

The p4 unshelve command retrieves shelved files from the specified pending changelist, opens them in a pending changelist, and copies them to the invoking user's workspace. Unshelving files from a pending changelist is restricted by the user's permissions on the files.

How do I shelve Perforce files?

Right-click the changelist and select Shelve. Alternately, you can shelve a checked-out file by dragging it from the pending changelist or depot pane to the Shelved Files node of the changelist where you want it shelved. P4V displays the Shelve dialog.

How do you add files to existing shelve in Perforce?

To add a file to a pre-existing shelve, the file must first be opened in the shelve's changelist. To move an opened file from one changelist to another, use the p4 reopen command. p4 obliterate myfile does not obliterate a shelve of the file (archive or metadata).


2 Answers

Thanks for the help everyone. The issue was that since the files were in two different streams instead of unshelve I needed to change ownership for the changelist to the new workspace. Now I can unshelve without any issues.

To change ownership I right clicked the the changelist in P4V and selected change ownership.

like image 56
Aaron Avatar answered Oct 15 '22 15:10

Aaron


If both workspaces are of same user, or relevent permission are given for the change list:

Go to your initial workspace [client1]

p4 shelve -c <changelist_x>

Go to your second workspace [client2]

p4 unshelve -s <changelist_x>
like image 44
Chand Priyankara Avatar answered Oct 15 '22 16:10

Chand Priyankara