Trac 변경사항 모듈
Table of Contents
Trac에는 파일의 변경사항("diffs")을 보여줄 수 있는 내장된 기능이 있습니다.
There are different kinds of change sets. Some can correspond to revisions made in the repositories, others can aggregate changes made in several revisions, but in the end, any kind of differences can be shown.
The changeset view consists of two parts, the header and the diff views.
변경사항 페이지의 제목
제목에서는 전체 변경사항의 대략적인 내용을 보여줍니다. 다음과 같은 정보를 볼 수 있습니다.:
- 날짜 -- 변경사항이 언제 커밋되었는가?
- 작성자 -- 누가 변경했는가?
- 메시지 -- 작성자가 적은 상세한 설명 (커밋 로그 메시지)
- 파일들 -- 이 변경사항에서 변경된 파일의 리스트
If more than one revision is involved in the set of changes being displayed, the Timestamp, Author and Message fields won't be shown.
각 파일의 앞 부분에는 컬러 박스가 존재합니다. 각 컬러는 해당 파일이 이 변경사항에서 어떤 영향을 받았는지를 표시합니다.
- 녹색: 추가됨
- 빨강: 제거됨
- 노랑: 수정됨
- 파란: 복사됨
- 회색: 이동됨
각 컬러에 대한 설명이 제목의 아래에 위치합니다.
변경사항 페이지의 차이점 비교창
제목의 아래에 변경사항 페이지의 메인인 차이점 비교창이 있습니다. 각 파일은 변경사항에 의해 영향을 받은 영역을 포함한 분리된 섹션이 보여집니다. 차이점을 볼 때 두 개의 스타일인 한쪽으로 보기과 두쪽으로 보기가 있습니다.(preference 폼을 사용해서 이 스타일들 사이를 전환할 수 있습니다.):
- 한쪽으로 보기 스타일은 파일의 변경된 영역을 서로 위 아래로 보여줍니다. 파일로부터 제거된 영역은 빨간색으로 표시됩니다. 추가된 영역은 녹색으로 표시됩니다. 만약 영역이 변경되었다면, 이전 버전이 새로운 버전위에 표시됩니다. 왼쪽편에 있는 행번호들은 이전 버전과 새로운 버전의 파일, 둘 다에서 변경된 정확한 위치를 지시합니다.
- 두쪽으로 보기 스타일은 이전 버전을 왼쪽에, 새로운 버전을 오른쪽에 보여줍니다.(일반적으로 이 스타일은 한쪽으로 보기 스타일보다 더 넓은 스크린 폭을 필요로 합니다.) 추가되거나 제거된 영역은 한쪽으로 보기 스타일과 같은 방식의 색깔로 보여집니다(각각 녹색과 빨간색). 그러나 수정된 영역은 노란색 배경으로 보여질 것입니다.
추가적으로, preference 폼에 차이점 창의 내용을 조절할 수 있는 다양한 옵션이 존재합니다.:
- 모든 변경사항의 전과 후에 얼마나 많은 라인을 함께 보여줄지 설정할 수 있습니다. (if the value all is used, then the full file will be shown)
- 공백라인, 대소문자의 차이 그리고 공백문자의 차이를 무시할지를 변경할 수 있습니다. 따라서 원하는 변경사항을 더 빨리 찾을 수 있습니다.
The Different Ways to Get a Diff
Examining a Changeset
When viewing a repository check-in, such as when following a changeset link or a changeset event in the timeline, Trac will display the exact changes made by the check-in.
There will be also navigation links to the Previous Changeset to and Next Changeset.
Examining Differences Between Revisions
Often you'll want to look at changes made on a file or on a directory spanning multiple revisions. The easiest way to get there is from the TracRevisionLog, where you can select the old and the new revisions of the file or directory, and then click the View changes button.
Examining Differences Between Branches
One of the core features of version control systems is the possibility to work simultaneously on different Lines of Developments, commonly called ?쐀ranches?? Trac enables you to examine the exact differences between such branches.
Using the View changes ... button in the TracBrowser allows you to enter From: and To: path/revision pairs. The resulting set of differences consist of the changes that should be applied to the From: content in order to get to the To: content.
For convenience, it is possible to invert the roles of the old and the new path/revision pairs by clicking the Reverse Diff link on the changeset page.
Checking the Last Change
The last possibility for examining changes is to use the Last Change link provided by the TracBrowser.
This link will take you to the last change that was made on that path. From there, you can use the Previous Change and Next Change links to traverse the change history of the file or directory.
참고: TracGuide, TracBrowser