|
Cet article a fait l'objet d'une traduction automatique. Déplacez votre pointeur sur les phrases de l'article pour voir la version originale de ce texte. Informations supplémentaires.
|
Traduction
Source
|
History, commande
tf hist[ory] itemspec [/version:versionspec] [/stopafter:number] [/recursive] [/user:username] [/format:(brief|detailed)] [/slotmode] [/itemmode] [/noprompt] [/login:username,[password]] [/sort:ascending,descending] [/collection:TeamProjectCollectionUrl]
|
Paramètre |
Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
itemspec |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Obtenir l'historique d'un fichier unique
c:\code\SiteApp\Main\SolutionA\Project1>tf history program2.cs
c:\code\SiteApp\Main\SolutionA\Project1>tf history program2.cs /noprompt
Changeset Change User Date Comment --------- -------------------------- ----------------- ---------- -------- 29 edit Peter Waxman 4/23/2012 Fix bug 20 add Julia Ilyina 4/12/2012 Add new
Obtenez l'historique de tous les éléments d'un dossier
c:\code\SiteApp\Main\SolutionA>tf history * /recursive
Obtenez l'historique des cinq dernières modifications apportées à tous les éléments d'un dossier
c:\code\SiteApp\Main\SolutionA>tf history * /noprompt /recursive /stopafter:5
Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 31 Julia Ilyina 5/15/2012 30 Julia Ilyina 4/23/2012 29 Peter Waxman 4/23/2012 Fix bug in new method 20 Julia Ilyina 4/12/2012 Add new method, add program2.cs to Proje 15 Julia Ilyina 4/8/2012
Obtenez l'historique de la version X et antérieures
c:\code\SiteApp\Main\SolutionA>tf history /noprompt * /recursive /v:30
Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 30 Julia Ilyina 4/23/2012 29 Peter Waxman 4/23/2012 Fix bug in new method 20 Julia Ilyina 4/12/2012 Add new method, add program2.cs to 15 Julia Ilyina 4/8/2012
Obtenez l'historique de la date D et antérieures
c:\code\SiteApp\Main\SolutionA>tf history /noprompt * /recursive /v:D4/24/2012
c:\code\SiteApp\Main\SolutionA>tf history /noprompt * /recursive /v:D2012-04-24T12:00
Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 30 Julia Ilyina 4/23/2012 29 Peter Waxman 4/23/2012 Fix bug in new method 20 Julia Ilyina 4/12/2012 Add new method, add program2.cs to 15 Julia Ilyina 4/8/2012
Obtenez l'historique de la version X à la version y
c:\code\SiteApp\Main\SolutionA>tf history /noprompt * /recursive /v:D4/12/2012~D4/24/2012
Changeset User Date Comment --------- ----------------- ---------- ---------------------------------------- 30 Julia Ilyina 4/23/2012 29 Peter Waxman 4/23/2012 Fix bug in new method 20 Julia Ilyina 4/12/2012 Add new method, add program2.cs to
Obtenez l'historique détaillé
c:\code\SiteApp\Main\SolutionA>tf history /noprompt * /recursive /v:D4/12/2012~D4/24/2012 /format:detailed
-------------------------------------------------------------------------------
Changeset: 30
User: Julia Ilyina (Fabrikam)
Date: Monday, April 23, 2012 1:23:05 PM
Comment:
Much better name for this file
Items:
rename $/SiteApp/Main/SolutionA/Project1/programBig.cs
delete, source rename $/SiteApp/Main/SolutionA/Project1/program3.cs;X15
-------------------------------------------------------------------------------
Changeset: 29
User: Julia Ilyina (Fabrikam)
Date: Monday, April 23, 2012 1:03:13 PM
Comment:
Fix bug in new method
Items:
edit $/SiteApp/Main/SolutionA/Project1/program1.cs
edit $/SiteApp/Main/SolutionA/Project1/program2.cs
-------------------------------------------------------------------------------
Changeset: 20
User: Julia Ilyina (Fabrikam)
Date: Thursday, April 12, 2012 5:09:35 PM
Comment:
Add new method, add program2.cs to Project1
Items:
add $/SiteApp/Main/SolutionA/Project1/program2.cs
Check-in Notes:
Documentation:
An important new part of our codebase.
Policy Warnings:
Override Reason:
Peter agrees with me that we can bypass for this check-in.
Messages:
The Code Analysis Policy requires files to be checked in through Visual
Studio with an open solution.
Obtenez l'historique non récurrent d'un dossier
c:\code\SiteApp\Main\SolutionA>tf history .
c:\code\SiteApp\Main\SolutionA>tf history . /noprompt
-
Obtenir l'historique d'un élément Utilisez Visual Studio pour obtenir l'historique des révisions.
-
Pour plus d'informations sur l'utilisation de la fenêtre Historique, consultez Obtenir l'historique d'un élément. -
Pour obtenir davantage d'informations détaillées à propos d'un ensemble de modifications (par exemple, vous souhaitez consulter les éléments de travail associés) : -
Dans la fenêtre historique, double-cliquez sur l'ensemble de modifications ou ouvrez le menu contextuel et choisissez Détails de l'ensemble de modifications. -
À partir de l'invite de commandes, utilisez Changeset Command.
-
-
Pour plus d'informations sur ces ensembles de modifications, consultez Rechercher et afficher des ensembles de modifications. -
L'option d' /collection est utile pour exécuter cette commande d'un ordinateur et d'un compte d'utilisateur qui n'a pas d'espace de travail mappé à la collection de projets d'équipe qui contient les éléments. -
Consultez Afficher et gérer les versions passées.