I have to migrate the shelveset created in one branch say "development" to another say "release". so that I can directly merge the shelveset then to release which was created for development branch.
the command I have used is:
tfpt unshelve "shelveset name" /migrate /source:"$...development" /target:"$...Release"
it is showing this error:
unable to determine the workspace
It allows you to merge(unshelve) a shelveset into a specific branch. Using Source Control Explorer in Visual Studio, get the history for any folder or file. Select one or more changesets in the list and right-click your selection. The context menu will now have a 'Merge...' option.
To find a shelvesetChoose the Actions link, and then choose Find Shelvesets. On the Find Shelvesets page, enter the name or alias of a project team member in the box, and then choose the Enter key. If you don't know the name of the owner, you can type * to list shelvesets for all users.
You can perform the unshelve and merge together by using the tfpt unshelve command from a Visual Studio command prompt. Make sure your active directory is a directory that is mapped to your local workspace otherwise you may see "Unable to identify workspace".
Your location from where you launch the command must be from within your workspace. E.g. c:\workspaces\project\development
if that's where your source is located.
I guess you question is: How can I get the job done without this error occurring?. In that case, make sure both branches are mapped to your local system and a latest version of your source code in you did a get-latest-version.
That should prevent the error from happening, because the paths then both contain information about the workspace used for the mapping.
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