Allow TFS client to use TFVC's tf.exe from modern versions of Visual Studio.

Review Request #14408 — Created April 29, 2025 and submitted

Information

RBTools
release-5.x

Reviewers

We have multiple wrapper classes for the TFS client which let us fall
back on whatever tools are available on the system (TF, TEE, or TF Helper).
Our TF wrapper checks that we're using the TFVC version from Visual
Studio 2017 (version 15), and blocks all other versions. At the time VS 2017
was the latest version, but now the latest version is Visual Studio
2022, which uses version 17 of TFVC. This change allows us to use any
version of TFVC higher than or equal to 15. This also updates the
documentation accordingly.

  • Ran unit tests.
  • Used rbt post to post a change from a TFVC repo using Visual Studio 2022.
Summary ID
Allow TFS client to use TFVC's tf.exe from modern versions of Visual Studio.
We have multiple wrapper classes for the TFS client which let us fall back on whatever tools are available on the system (TF, TEE, or TF Helper). Our TF wrapper checks that we're using the TFVC version from Visual Studio 2017 (version 15), and blocks all other versions. At the time VS 2017 was the latest version, but now the latest version is Visual Studio 2022, which uses version 17 of TFVC. This change allows us to use any version of TFVC higher than or equal to 15. This also updates the documentation accordingly.
7242a97ac445c1719c56c3dfc9b019916745002a
Description From Last Updated

Can you change this to use :command: while here?

chipx86chipx86

For new tests, let's start using -> None to opt into type hints, and add an annotations future import at …

chipx86chipx86

Should probably be "include" instead of "includes" now.

daviddavid
chipx86
  1. 
      
  2. docs/rbtools/rbt/configuration/tfs.rst (Diff revision 1)
     
     
    Show all issues

    Can you change this to use :command: while here?

  3. rbtools/clients/tests/test_tfs.py (Diff revision 1)
     
     
    Show all issues

    For new tests, let's start using -> None to opt into type hints, and add an annotations future import at the top. We can safely go with type hints for all Power Pack code now.

  4. 
      
maubin
david
  1. 
      
  2. docs/rbtools/rbt/configuration/tfs.rst (Diff revision 2)
     
     
    Show all issues

    Should probably be "include" instead of "includes" now.

  3. 
      
maubin
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
maubin
Review request changed
Status:
Completed
Change Summary:
Pushed to release-5.x (4782635)