Determining who last modified a line with the Annotate command

Let's say you have found some code that you don't understand on line 65 of a file. Who do you ask about it? Si può consultare la cronologia delle risorse del file, ma non si evincerebbe chi ha modificato quella riga in particolare. Ecco perché il comando Annotazione è utile. Sometimes jokingly referred to as the blame, it allows you to pick any ASCII file (see note on binary files) and get a listing of who changed what line.

L'azione Mostra annotazione è disponibile dai seguenti punti: Vista Cronologia, Esplora repository, Vista Sincronizzazione e vista Risorsa e pacchetti. There are two available 'flavors' of Annotate: the newer Quick Diff Annotate and the older Annotate View. You can select which version of annotate you wish to use from the CVS Annotate preference page. To summarize the differences between the two types of annotate:

  1. Quick Diff Annotate:
  2. Annotate View:

Attivo solo coi file di testo

Il comando di annotazione è valido solo con i file contrassegnati come ASCII nel repository CVS. Inoltre, il comando aprirà un file di testo per visualizzare le modifiche anche se l'editor associato nel workbench non è un editor di testo. Ad esempio, se si esegue il comando di annotazione in un file plugin.xml, verrà aperto un semplice editor di test invece dell'editor completo PDE.

Argomenti correlati
Watch/Edit
Programmazione in team con CVS

Riferimenti correlati
CVS