by Andrea
15 September 2010 02:53
In questi giorni stò provando alcuni tool per comparazione e merge di file, in cerca di un tool che sia migliore di quello presente in Team Foundation (Visual Studio)...e la ricerca non è affatto semplice.
Al momento stò provando con KDiff3, un tool gratuito che supporta il confronto a 3 vie.
Per specificare il tool in Visual Studio, è necessario andare in
tools -> options -> source control -> visual studio team foundation server -> "configure user tools"
e specificare il comando di apertura (path dell'eseguibile del tool), se usato per diff o merge, e le estensioni dei file che verranno gestiti dal tool (.* per tutti i file).
Per un corretto funzionamento/integrazione è necessario configurare correttamente le impostazioni che permetto a Visual Studio di comunicare esattamente i path e i nomi dei file in questione.
Cercando in rete ho trovato un post che raggruppa queste configurazioni a seconda dei diversi tools: diff/merge configuration in Team Foundation - common Command and Argument values
Riporto qui (cut & paste) le configurazioni presenti nel post:
Compare tools:
Merge tools:
Product | Command | Arguments |
TFS default | diffmerge.exe | /merge %1 %2 %3 %4 %6 %7 |
KDiff3 | kdiff3.exe | %3 --fname %8 %2 --fname %7 %1 --fname %6 -o %4 |
Visual SourceSafe | ssexp.exe | /merge %1 %2 %3 %4 %6 %7 |
Araxis | compare.exe | /wait /swap /a3 /3 /title1:%6 /title2:%7 /title3:%8 %1 %2 %3 %4 |
Beyond Compare (2-way merge) | bc2.exe | %1 %2 /savetarget=%4 /title1=%6 /title2=%7 |
WinMerge (2-way merge) | winmerge.exe | /ub /dl %6 /dr %7 %1 %2 %4 |
Guiffy | guiffy.exe | -s -h1%6 -h2%7 -hm%9 %1 %2 %3 %4 |
Ellie Computing | guimerge.exe | --mode=merge3 %3 %1 %2 --to=%4 --title0=%8 --title1=%6 --title2=%7 --to-title=%9 |
SourceGear DiffMerge | DiffMerge.exe | /title1=%6 /title2=%8 /title3=%7 /result=%4 %1 %3 %2 |
Beyond Compare 3 | BComp.exe | %1 %2 %3 %4 /title1=%6 /title2=%7 /title3=%8 /title4=%9 |
TortoiseMerge | TortoiseMerge.exe | /base:%3 /mine:%2 /theirs:%1 /basename:%8 /minename:%7 /theirsname:%6 /merged:%4 /mergedname:%9 |
Visual SlickEdit | win\vsmerge.exe | %3 %1 %2 %4 |
UPDATE: