Muokkaa

Jaa


Info or Properties command (Team Foundation Version Control)

Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019

Visual Studio 2019 | Visual Studio 2022

The tf info command displays information about items that are under Team Foundation Version Control (TFVC) version control. You can also use tf properties, but it's deprecated.

Prerequisites

To use the info command, you must have the Read permission set to Allow for all specified files and folders. For more information, see Default TFVC permissions.

Syntax

tf info [/collection:TeamProjectCollectionUrl] [/recursive] [/login:username,[password]]
itemspec [/version:versionspec] [/workspace] 

Parameters

Arguments

Argument

Description


<TeamProjectCollectionUrl>

The URL of the project collection that contains the items for which you want to display properties, for example http://myserver:8080/tfs/DefaultCollection.

<itemspec>

Identifies the files and folders that are specified for property retrieval.

For more information about how TFVC parses an itemspec to determine which items are within scope, see Use options to modify how a command functions.

Note

You can specify more than one itemspec argument.

<versionspec>

Provides a value such as C3 for the /version option. For more information about how TFVC parses a version specification to determine which items are within its scope, see Use Team Foundation version control commands.

<username>

Provides a value to the /login option. You can specify a user name value as either DOMAIN\username or username.

Options

Option

Description

/recursive

Displays all files and subfolders of a folder.

/version

Specifies the version of the file to open for viewing the properties.

/workspace

Indicates the workspace to use when displaying the local properties, such as location on disk.

/collection

Specifies the project collection.

/login

Specifies the user name and password to authenticate the user with Azure DevOps.

Remarks

The info or properties command displays the following information about a version-controlled item. Local and server information is listed separately.

Property name

Description

Local information:

Local path

Indicates the local path of the workspace folder for the specified item.

Changeset

Indicates the version number of the file or folder that was last retrieved to the current workspace by using the Get command.

Change

Indicates where a change is pending.

Type

Indicates the item type, for example file.

Server information:

Server path

Indicates the full path of the item on the version control server.

Changeset

Indicates the version number of the item.

Deletion ID

If the item is deleted, indicates the deletion identification, otherwise 0.

Lock

Indicates the type of lock:

  • Checkin: Check-in isn't permitted for the file.
  • Checkout: Check-out isn't permitted for the file.
  • None: No lock is set. For more information, see Lock command.

Lock owner

Indicates the person who set a lock.

Last modified

Indicates the date and time stamp when the item was last modified.

Type

Indicates the item type, for example file.

File type

Displays the file type encoding, for example Windows-1252.

Size

Indicates the size of the file in bytes.

For more information on how to use the tf command-line utility, see Use Team Foundation version control commands.

Examples

The following example displays properties information about the file 314.cs.

c:\projects>tf info 314.cs

The following example displays the properties of the working folder c:\projects\objects.

c:\projects>tf info objects