This project is read-only.

Get-Diff

Introduction

The Get-Diff cmdlet enables to see the difference between two server folders.
This command was developped to compare two branches.

Obtain the TFS server using the Get-TFS CmdLet.

Parameters

Name Description Example
-tfs TFS server obtained using Get-TFS $tfs = Get-TFS -rul http://address:8080
-PathL Source path
-PathR Destination path
-Information Activate the verbose mode

Example retrieving differences


PSTFS > $tfs = Get-TFS colmar

PS C:\> $item = Get-Diff -TFS $tfs -PathL "$\EvaTraining\Developpement" -PathR "$\EvaTraining\Integration"
Compared 1386 items
Same: 1286
Diff: 55
Right Only: 12
Left Only: 33
PS C:\>

PS C:\> $item | FT

Information                                                TypeDiff DateCheckInL                      DateCheckInR                                               TypeItem
-----------                                                -------- ------------                      ------------                                               --------
$/EvaTraining/Developpement/Co...                              Diff 14/09/2009 17:02:13               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Co...                              Diff 15/09/2009 09:55:27               07/01/2009 18:11:50                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 20:01:48                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 20:01:48                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 20:01:48                                                                              File
$/EvaTraining/Developpement/EV...                              Diff 14/09/2009 17:02:13               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 15/09/2009 11:14:46               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 14/09/2009 17:02:52               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                          LeftOnly 14/09/2009 17:02:13                                                                              File
$/EvaTraining/Developpement/EV...                              Diff 14/09/2009 17:02:13               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 15/09/2009 09:54:03               17/12/2008 09:52:55                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 15/09/2009 09:54:03               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 29/05/2009 10:05:09               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                          LeftOnly 29/05/2009 10:05:09                                                                              File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/EV...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 17:16:16               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 23/01/2009 09:24:42               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                            Folder
$/EvaTraining/Developpement/Ev...                              Diff 11/09/2009 16:50:55               28/05/2009 11:00:43                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 17:16:16               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:26:14               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 10:38:27                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 10:38:27                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 10:38:27                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 10:38:27                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 10:38:27                                                                              File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:26:14               28/05/2009 11:00:43                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:04:47                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:04:47                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 14:04:01                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 11:19:27                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 28/05/2009 21:00:40                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                            Folder
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:48:01               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:48:01               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:48:01               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 11:20:40               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 11:20:40               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 14/09/2009 17:02:13               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 14/09/2009 17:18:45               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 10:05:09               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 11/09/2009 17:57:01               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/Ev...                              Diff 15/09/2009 11:14:46               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 13:20:44               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                            Folder
$/EvaTraining/Developpement/Ev...                              Diff 29/05/2009 17:16:16               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 17:16:16                                                                              File
$/EvaTraining/Developpement/Ev...                              Diff 14/09/2009 17:18:45               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 14/09/2009 17:18:45               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 15/09/2009 11:14:46               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               17/12/2008 09:52:55                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                              Diff 28/05/2009 20:01:48               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/Ev...                          LeftOnly 29/05/2009 16:47:21                                                                              File
$/EvaTraining/Developpement/TE...                              Diff 28/05/2009 20:01:48               17/02/2009 13:42:14                                            File
$/EvaTraining/Developpement/TE...                              Diff 06/02/2009 14:09:22               27/05/2009 18:37:03                                            File
$/EvaTraining/Developpement/TE...                          LeftOnly 06/02/2009 14:09:22                                                                              File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   17/12/2008 09:52:55                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   17/12/2008 09:52:55                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   17/12/2008 09:52:55                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   17/12/2008 09:52:55                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   17/12/2008 09:52:55                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                          Folder
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File
$/EvaTraining/Integration/EvaT...                         RightOnly                                   27/05/2009 18:37:03                                            File

PS C:\>

For detail

PS C:\> $item[12].Diff()
ConventionDocument.cs
===================================================================
--- $/EvaTraining/Developpement/EVATraining.Domain/Documents/ConventionDocument.cs;C2062  (server)    15/09/2009 09:54
+++ $/EvaTraining/Integration/EVATraining.Domain/Documents/ConventionDocument.cs;C140  (server)    17/12/2008 09:52
@@ -27,7 +27,6 @@
         public String LieuFormation { get; set; }
         public String LstParticipant { get; set; }
         public String Tarif { get; set; }
-        public String PrixMocs { get; set; }
         private String fraisAnnexe = "0";
         public String FraisAnnexe
         {
PS C:\>

Last edited Nov 7, 2009 at 2:56 PM by pc152, version 3

Comments

swapna_2525 Jan 18, 2011 at 7:50 AM 
Hi,

I am trying to compare the folders that are mapped as their workspaces..
Can anyone help me...