Does the required parameter Get Latest before checking in TFS, so that you do not overwrite / lose the code?

My team has a recurring problem that drives me crazy. People claim that some checks in Team Foundation Server overwrite previous check-ins / existing code. They claim that you always need to do Get Latest Versionbefore you register. In other words, launching the latest version is a prerequisite for proper registration.

In response, answer as follows: There should be a definition of / t TFSthat we are missing / we did not note if the above described is really happening. What is the point of having a version control system that will not automatically warn you of code conflicts during verification (if before your verification someone else checked in a different code than yours)? I would understand if there were settings that set this or that behavior (check, regardless of what is in the db now, or warn if there are any conflicts and tell me about the action (merging)).

I want to understand: am I mistaken ?! Is this just a way of working TFS? Get Latestis mandatory before any checks, no matter what ?!

As a side note, if checking without manually launching the latest version is risky and dangerous, why won't Microsoft do this by default ?!

Thanks in advance!

+4
source share
2 answers

I would say that doing the latter is good practice, but not mandatory.

If I have a file that I am editing and there is a later version on the server.

  • If I get the latter, I expect the conflict to be detected and I will be asked to resolve the conflict before my local file system is overwritten.
  • If I try to check the file without doing the latter, I would expect TFS to detect the conflict again and ask it to resolve it.

, , . TFS 2013 VS 2013 . , .

, , :

  • , TFS . , , .
  • , , "Keep Local Version" .

, , , , , , , CI, .

: - ,

, , , , , , .

- , .

. ..

: . TFS, github

Automerge, , , - . , (Tools → Options → Source Control → Visual Studio Team Foundation Server → )

+4

@JamesReed, TFS , ; !

, (.. ) .

. :

, TFS . , . [ ]

, TFS , ! . , , . B, , . TFS, , , !

Auto merge error

2 :

  • Get Latest - , ? .
  • Get Latest -before-commit ? !!

, , , , , , .

( , Subversion, , VCS : Subversion and TortoiseSVN Cookbook Part 1.)

+5

Source: https://habr.com/ru/post/1618401/


All Articles