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.
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.
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.
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).
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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With