Search code examples
perforcebranching-and-mergingunshelve

How to unshelve a shelved changelist to another branch prior to Perforce 2013?


Using Perforce Server 2012.2/538478, how can I unshelve files from the trunk to another branch?

When trying to do it, I get:

//filename... (not mapped to your workspace view)

In Perforce 2013, I found this unshelve command to really be helpful:

p4 unshelve -s <changlist#-with-shelved-files> -S //depot/streamname

But with the version I'm using currently, I found nothing to help me with that issue.

Any suggestions?


Solution

  • Unfortunately, without upgrading to 2013.1 and getting the improved unshelve operation, you're going to need to manually copy the data by:

    • unshelving in trunk, noting the specific files that have changed
    • p4 edit the files in your other stream/branch
    • manually copy the unshelved files to the other stream/branch (you can't use p4 copy or p4 integrate for this because they aren't committed on the trunk
    • test and commit on the other branch