Questions tagged [tfvc]

Team Foundation Version Control (TFVC) is the centralized version control system option in Microsoft Visual Studio Team Services (VSTS) and Team Foundation Server (TFS).

Team Foundation Version Control (TFVC) is a centralized version control system offered by Visual Studio Team Services (VSTS) and Team Foundation Server (TFS). VSTS and TFS both support hosting either Git repositories or TFVC repositories, so users can select a centralized or a distributed version control system (or both).

TFVC is differs significantly from a distributed version control system, like Git. Instead, it is conceptually similar to other centralized version control systems like Perforce or Subversion with added enterprise requirements. It is optimized and intended for users who require extremely large code bases and who require fine-grained security and auditing of version control operations.

Team Foundation Version Control supports two paradigms:

  • "Server Workspaces": files are read-only and cannot be modified without explicitly being "checked out" from the version control server. (Plug-ins to Visual Studio and Eclipse will perform the check-out from the server automatically.) This is best suited to exceptionally large (up to tens of gigabyte) code bases, since changes must be reported explicitly, therefore it avoids scanning the local repository looking for changes.

  • "Local Workspaces": files can be modified easily, and there is no need to contact the server. Instead, the local workspace will be scanned looking for changes. Filesystem watchers are available on Windows and within the Eclipse IDE to help support very large (up to a gigabyte) repositories.

Team Foundation Version Control supports "working folder mappings", where a client can select a subset of the version control repository that exists on the server and downloading it to the client computer. This allows users to minimize the scope of the remote repository that they need on their workstation.

TFVC is often, incorrectly, referred to as "TFS". TFS (Team Foundation Server), is the name of Microsoft's on-premises Application Lifecycle Management server. TFVC is a version control offering within TFS and VSTS (along with Git), but it is not synonymous with TFS.

813 questions
14
votes
1 answer

How to get specific changeset version treated as changes relative to latest version?

I rolled back a changeset. Now I need to check out the changeset that was rolled back with 'actualized' pending changes. So like everything is before the commit of the changes. When I get specific version with files override I see nothing in pending…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
13
votes
3 answers

VSTS build from multiple repositories

I have two repositories - one in TFVC and another in Git. There are specific technical reasons for keeping them separate. The code in TFVC is built on a private build agent and the code in Git is built on a hosted agent. So currently I have two…
Kangkan
  • 15,267
  • 10
  • 70
  • 113
13
votes
2 answers

How to exclude folders when using TFS in vscode?

I am using Visual Studio Team Services extension in VS code for check in. https://marketplace.visualstudio.com/items?itemName=ms-vsts.team I am now trying to check in change in angular project, but I am annoyed by excluded 16000 files which are from…
sensei
  • 7,044
  • 10
  • 57
  • 125
13
votes
1 answer

Building specific branches on Visual Studio Team Services

I have a repository in VS Team Services which is setup as : -root | | -Dev (.sln) | | -Releases | | - Test (.sln) | - Live (.sln) Each build is working fine, however its pulling the entire repo and I just want it to pull a…
MiloTheGreat
  • 710
  • 7
  • 14
12
votes
3 answers

Why can't I resolve this source conflict in VS 2019?

There don't appear to be any useful options here to resolve this merge from dev -> main branches. Why? I just want to overwrite whoever changed the main branch incorrectly, but I don't have any option to do that here. If I right click, I see some…
djbyter
  • 763
  • 8
  • 28
11
votes
1 answer

How to map existing folders (which are moved to new machine) with the TFS without need to download the entire data from TFS?

Earlier I had mapped my local folders to the TFS. I had to change machine/computer for some reason. So I copied all the folders to the new machine. Now when I try to map the TFS folders to the existing folders on the new machine, it always shows…
Learner
  • 4,661
  • 9
  • 56
  • 102
11
votes
2 answers

Visual Studio creating multiple/ additional workspaces

I started using TFS since VS2010. By that time I already created my own TFS server (myname.visualstudio.com). My problem is that I created a new project on the my TFS website (the one with the dashboards). Then when I go to VS2017, and connect to…
Bessie
  • 113
  • 1
  • 8
11
votes
5 answers

Visual Studio 2015 will only use git for source control

I have always been able to create a project/solution and add it to source control and it will get added to TFS. In the last couple of months something has changed and when I create a new project/solution in Visual Studio 2015 Enterprise, it…
Damian70
  • 348
  • 1
  • 3
  • 18
11
votes
4 answers

TFS file must remain locked

I have some 3rd party dlls checked into TFS Our machines were renamed and now TFS believes they are checked out for edit by me on another machine. I tried tf lock /lock:none contrib64/* /workspace:oldmachine;myusername but I get the error TF10152:…
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
10
votes
1 answer

TFS History of a deleted file

I have ran into a problem with history of a certain file on TFS. I need to find a file history in TFS so I could investigate why was it deleted, but we have hundreds of changesets so manual finding is out of question. Is there a way to find a…
9
votes
1 answer

Is it possible to do a "destroy history" in TFS?

Is to possible to "purge" history from a given change set/date in TFS? So, for example, For file X destroy all version older than date Y. or destroy all version before revision Y.
Simon
  • 33,714
  • 21
  • 133
  • 202
8
votes
1 answer

Release management does not support download of artifact type TfvcLabel in the current version

We are using TFS(Version 16.131.28106.2) to build and deploy the code. I want to give source label On every Success build and Label format configured as $(Build.SourceVersion). I am getting Label from build definition as, But, In Release…
Darshana Patel
  • 507
  • 1
  • 11
  • 25
8
votes
1 answer

TFS Rollback vs "Get This Version"

What is the difference between Rollback and "Get This Version" ? Both of them let me go back to a specific version and from there doing changes and check-in. What are the additional benefits of having both of them?
ehh
  • 3,412
  • 7
  • 43
  • 91
8
votes
4 answers

How to find all Code Reviews across Projects and Collections in TFS?

We have 4 Team Project Collections with a dozen-or-so Team Projects each. We've started using the integrated Code Review system, and request reviews across those Collections and Projects. Is there an easy way to find all Code Reviews you're involved…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
8
votes
2 answers

TFS build, one build for many branches

We use TFS source control and have two build controllers (one VS2010 the other VS2012). We use the default build workflow template bar a few custom changes. As we have many branches, how would we go about changing the workspace based on the desired…
MrBeanzy
  • 2,286
  • 3
  • 28
  • 38
1 2
3
54 55