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

22,913

Solution 1

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.

Solution 2

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>

Solution 3

You must specify a changelist in your destination workspace for the shelved files to be moved to.

EXAMPLE - The 'admin' user has some shelved files in change 12118

$ p4 changes -s shelved -u admin
Change 12118 on 2014/06/25 by admin@admin14streams *pending* 'original shelve changes by admi'

Another user creates a changelist with a description and removes those shelved files into their changelist.

$ p4 change

$ p4 unshelve -s 12118 -c 12119
//depot/r1.0/bar#1 - unshelved, opened for edit
//depot/r1.0/foo#1 - unshelved, opened for edit

In P4V, to unshelve changes from another user:

  1. Go to the Pending tab
  2. Click on the Filter so that it shows the changes
     for the other user/workspace
  3. Select the shelved change, right-click and select 'Unshelve Files'

REFERENCES

http://answers.perforce.com/articles/KB_Article/Changing-the-Owner-of-a-Pending-Changelist

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

Share:
22,913
Aaron
Author by

Aaron

Updated on June 15, 2020

Comments

  • Aaron
    Aaron almost 4 years

    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.

  • ANjaNA
    ANjaNA almost 8 years
    works fine for clients of same user, but what are the permissions need to give if the second workspace is belong to different user ?
  • GP24
    GP24 over 7 years
    This is the answer. Thanks!
  • creativeDrive
    creativeDrive about 7 years
    can same user in workspace2 can edit and reshelve into the same change list?
  • Alok Prasad
    Alok Prasad almost 4 years
    how to change/update changelist from client2 , which was created by client1?