index > Team Foundation Server - General > about workspace

about workspace


In source control, if you want to get a specific version for example, you can choose a workspace version. Does it mean that the other ppl can choose any workspace they want? Why do they want to do that? What is the exactly meaning of this workspace version. Thank you

jiajia




Jia
Jiajia
Hmm this is long to explain here, it's a new concept in Source Control, I would recommend you to take a look to this article which talks about what workspaces are, and how to work with them: http://msdn2.microsoft.com/en-us/library/ms181383.aspx


Luis Fraile - MCSD.NET - http://luisfraile.spaces.live.com/
Luis Fraile

"Workspace version" is the version of an item as it exists in your workspace. It only makes sense if the item has been "get'd" into your workspace, otherwise we won't be able to resolve what "workspace version" means for that item.

Being able to specify workspace version lets you specify a point in time (specifically the version of the item you have in your workspace) without having to be more specific about it. For instance, if I have foo.cs in my workspace at changeset 6, but it was also edited at changesets 5 and 7 (and 7 is currently the latest changeset), I can see the diffs between my "workspace version" and latest with "tf diff foo.cs /version:W~T" (W meaning workspace version, T meaning tip).

By default workspace version means "the version of the item in the current workspace", but you can also specify a different workspace. This can be useful if, for instance, you want to sync some subdirectory to the same versions as some other user, or some other workspace of yours.

I'll also rip of part of Adam's blog post about version specs here:

Lastly, there are workspace versions. At first glance, this may seem somewhat silly. Workspace version indicates the version last gotten in a particular workspace. Hence, if you simply say ??f get * /r /version:W?? you??e telling the server to download the last version you downloaded. This should never do anything, though you can add the "/force" flag to redownload. However, you can append a different workspace here, such as "tf get */r /version:WMyOtherWorkspace" to get the same version in the current workspace as you have in another of your workspaces. Suppose that a coworker has found a bug and you want to reproduce it under a debugger. You can run ??f get * /r /version:WTheirWorkspace;DOMAIN\Coworker??to get the last version of the code which they downloaded. This is also handy for buddy testing before you unshelve someone else?? changes if you want to have the same setup that they have.




Team Foundation Server - http://blogs.msdn.com/jmanning/
James Manning - MSFT

Thank you James for your answer.

I think i kind understand the meaning of this workspace version. Just need time to make some experiment. I will propose more quesions maybe in the future.

jiajia




Jia
Jiajia
reply 4

You can use google to search for other answers

 

More Articles

TF30063: You are not authorized to access <tfsservername.site....
Do we have install VS2005 compulsorily for using MSSCCI provider
DeleteProject using CSS causing problem...
TFS Build Wizard
Work Item field is not shown in datawearhous database
Problems during the Deletion Project in TFS
Initialization for plugin "Microsoft.Pcw.currituck" fai...
'Work Items' report is failing in VSTS beta3
Shouldn't this exception logged as error or warning in event log
TFS Reporting Errors
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Source Control not getting the latest ve…
ADAM & July CTP
Extensibility Kit update
How to team build and publish a web site?
Team Project Creation Failed with Soap E…
Is a domain required for TFS?
how to control the security in …
ADAM Error on Installation
How do I list the changes between one la…
Incredibly (astronimically) slow perform…
CMMI & VSTS
Is there a way to delete a Work Item Type?
Error"Document not found: vstfs:htt…
Web access to work items
Disconnect from TFS gives error

Hot Articles

What's the Max size limit for "Html…
TFS and MS Project Field Mapping issues
Error "could not find CLR version..…
Modifying Work Item Fields
Searching the repository...
Can you programmatically checkin a file …
Adding projects from outside the local s…
Cannot Add New Work Item (Beta 3)
tfsbuild.exe errors when trying to start…
Strange problem with TFS, SQL 2005 and T…
"All Files are up to date" - &…
firewall issue, Changing 8080 to 80
How to change the current authenticated …
Failed to save WI Bug in specifik transi…
How to manage several projects in one te…

Recommend Articles

Outlook Add-In Sample Code?
Evaluation version
Unable to compare versions - "Inval…
Error message for December CTP - Error 2…
TfsReportDS Error
vssscc file corrupt
Installing Team Foundation Server and Te…
Triage : Approved / Investigate
How to attatch a work item to multiple u…
Automaticly create wi's and relate them …
I really miss the report "Work Item…
Team Build variables changed in RC?
Code analysis check in policy variant
Restore a specific file
Performance issue with Get Lastest Version