| 1 | = Trac Changeset Module = |
| 2 | Trac has a built-in functionality for visualizing diffs - changes to files. |
| 3 | |
| 4 | == The Changeset View == |
| 5 | |
| 6 | When viewing a commited changeset, such as when clicking a changeset |
| 7 | [wiki:TracLinks TracLink] or a changeset event-line in the |
| 8 | [wiki:TracTimeline timeline], Trac will display what changes this current set of patches imposes. |
| 9 | |
| 10 | The changeset view consists of two parts, the '''header''' and the '''diff view'''. |
| 11 | |
| 12 | === Changeset Header === |
| 13 | |
| 14 | The diff body shows an overview of the whole changeset. |
| 15 | Here you will find information such as: |
| 16 | |
| 17 | * Revision -- The unique revision ID for this changeset. |
| 18 | * Timestamp -- When the changeset was commited. |
| 19 | * Author -- Who commited the changeset. |
| 20 | * Message -- A brief description from the author (the commit log message). |
| 21 | * Files -- A list of files affected by this changeset. |
| 22 | |
| 23 | In front of each listed file, you'll find a colored rectangle. The color |
| 24 | indicates how the file is affected by the changeset. |
| 25 | |
| 26 | * Green: Added |
| 27 | * Red: Removed |
| 28 | * Orange: Modified |
| 29 | |
| 30 | The color legend is located below the header as a reminder. |
| 31 | |
| 32 | === Diff View === |
| 33 | Below the header is the main part of the changeset, the diff view. |
| 34 | |
| 35 | Each file is shown in a separate section, divided by a dashed line in the |
| 36 | center. This is a '''side-by-side''' view showing only the portions of the file |
| 37 | affected by this changeset. |
| 38 | |
| 39 | On the left hand side are the contents of the old version of the file, on the |
| 40 | right side the new. To visualize the difference between the old and new |
| 41 | version, each block of lines altered by the changeset has a colored |
| 42 | background. The color reflect the change, and the meaning the same as in the |
| 43 | header (see above). |
| 44 | |
| 45 | ---- |
| 46 | See also: TracGuide, TracBrowser |