Changes between Version 1 and Version 2 of TracChangeset


Ignore:
Timestamp:
12/14/10 02:51:48 (13 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracChangeset

    v1 v2  
    1 = チェンジセット = 
     1= Trac Changeset Module = 
    22[[TracGuideToc]] 
    33 
    4 Trac にはビジュアル化された “diff” (ファイル間の差分をとる) 機能が組み込まれています。 
     4Trac has a built-in functionality for visualizing “diffs” - changes to files. 
    55 
    6 [wiki:TracLinks Wikiリンク] されたチェンジセットや、 
    7 [wiki:TracTimeline タイムライン] 
    8 のチェンジセットイベント行をクリックしたときに、 
    9 Tracはコミットによって生じた変更を表示します。 
     6There are different kinds of ''change sets''.  
     7Some can correspond to revisions made in the repositories, 
     8others can aggregate changes made in several revisions,  
     9but in the end, any kind of differences can be shown. 
    1010 
    11 チェンジセットビューは、 ''ヘッダ'' と ''diff 表示'' の2つの部品で構成されます。 
     11The changeset view consists of two parts, the ''header''  
     12and the ''diff views''. 
    1213 
    13 == チェンジセットヘッダ == 
     14== Changeset Header == 
    1415 
    15 ヘッダはチェンジセット全体の概要を表示します。 
    16 これには以下の情報が含まれます: 
     16The header shows an overview of the whole changeset. 
     17Here you will find information such as: 
    1718 
    18  * コミット日時 -- いつコミットされたか 
    19  * コミッタ -- 誰がコミットしたか 
    20  * ログメッセージ -- コミッタによるチェンジセットの説明 (コミットログのメッセージ) 
    21  * 更新ファイル -- チェンジセットに関連するファイルのリスト 
     19 * Timestamp — When the changeset was commited 
     20 * Author — Who commited the changeset 
     21 * Message — A brief description from the author (the commit log message) 
     22 * Location — Parent directory of all files affected by this changeset 
     23 * Files — A list of files affected by this changeset 
    2224 
    23 リストのそれぞれのファイルの前に、色付きの四角があります。この色は 
    24 チェンジセットによって、どのように更新されたか示しています。 
     25If more than one revision is involved in the set of changes being 
     26displayed, the ''Timestamp'', ''Author'' and ''Message'' fields  
     27won't be shown. 
     28 
     29In front of each listed file, you'll find  a colored rectangle. The color 
     30indicates how the file is affected by the changeset. 
    2531  
    26  * Green: 追加 
    27  * Red: 削除 
    28  * Yellow: 更新 
    29  * Blue: コピー 
    30  * Gray: 移動 
     32 * Green: Added 
     33 * Red: Removed 
     34 * Yellow: Modified 
     35 * Blue: Copied 
     36 * Gray: Moved 
    3137 
    32 この意味を思い出せるように、ヘッダの下部に色の説明が表示されます。 
     38The color legend is located below the header as a reminder. 
    3339 
    34 == diff 表示 == 
     40== Diff Views == 
    3541 
    36 ヘッダの下は、チェンジセットビューのメインとなる diff 表示です。各ファイルはそれぞれ別のセクションに表示され、それぞれチェンジセットによって更新された部分だけを表示します。 diff の表示は、 ''インライン'' と ''並べて表示'' という、2つの異なるスタイルで表示することができます。(スタイルの切り替えは右上のフォームで変更できます): 
     42Below the header is the main part of the changeset, the diff view. Each file is shown in a separate section, each of which will contain only the regions of the file that are affected by the changeset. There are two different styles of displaying the diffs: ''inline'' or ''side-by-side'' (you can switch between those styles using the preferences form): 
    3743 
    38  * ''インライン'' スタイルでは、2つのファイルを重ねて、変更があった行だけを表示します。ファイルから削除された行は赤に、追加された行は緑に着色されます。変更された行は古いリビジョン、新しいリビジョンの順で表示します。左側の行番号は古いリビジョンと、新しいリビジョンの両方で、変更を行った正確な位置を示します。 
    39  * ''並べて表示'' スタイルでは、左に古いリビジョン、右に新しいリビジョンを表示します(これは通常、インラインスタイルより多くのスクリーン幅を必要とするでしょう。)。追加だけ、または削除だけが行われた行は、インラインスタイルの場合と同様(それぞれ緑と赤)に着色されますが、変更された行は黄色に着色されます。 
     44 * The ''inline'' style shows the changed regions of a file underneath each other. A region removed from the file will be colored red, an added region will be colored green. If a region was modified, the old version is displayed above the new version. Line numbers on the left side indicate the exact position of the change in both the old and the new version of the file. 
     45 * The ''side-by-side'' style shows the old version on the left and the new version on the right (this will typically require more screen width than the inline style.) Added and removed regions will be colored in the same way as with the inline style (green and red, respectively), but modified regions will have a yellow background. 
    4046 
    41 さらに、様々な高度なオプションが用意されています。右上のフォームを使用すると diff の表示を好みに調整することができます。: 
    42  * 更新があった行の前後に、それぞれ何行表示するのか指定できます。 
    43  * 機能的な変更だけを手早く確認したい場合に、空行、大文字小文字の変更、空白文字の変更をそれぞれ無視することができます。 
     47In addition, various advanced options are available in the preferences form for adjusting the display of the diffs: 
     48 * You can set how many lines are displayed before and after every change 
     49   (if the value ''all'' is used, then the full file will be shown) 
     50 * You can toggle whether blank lines, case changes and white space changes are ignored, thereby letting you find the functional changes more quickly 
     51 
     52 
     53== The Different Ways to Get a Diff == 
     54 
     55=== Examining a Changeset === 
     56 
     57When viewing a repository check-in, such as when following a 
     58changeset [wiki:TracLinks link] or a changeset event in the  
     59[wiki:TracTimeline timeline], Trac will display the exact changes 
     60made by the check-in. 
     61 
     62There will be also navigation links to the ''Previous Changeset'' 
     63to and ''Next Changeset''. 
     64 
     65=== Examining Differences Between Revisions === 
     66 
     67Often you'll want to look at changes made on a file  
     68or on a directory spanning multiple revisions. The easiest way 
     69to get there is from the TracRevisionLog, where you can select 
     70the ''old'' and the ''new'' revisions of the file or directory, and 
     71then click the ''View changes'' button. 
     72 
     73=== Examining Differences Between Branches === 
     74 
     75One of the core features of version control systems is the possibility 
     76to work simultaneously on different ''Lines of Developments'', commonly 
     77called “branches”. Trac enables you to examine the exact differences 
     78between such branches. 
     79 
     80Using the '''View changes ...''' button in the TracBrowser allows you to enter 
     81''From:'' and ''To:'' path/revision pairs. The resulting set of differences consist 
     82of the changes that should be applied to the ''From:'' content in order 
     83to get to the ''To:'' content. 
     84 
     85For convenience, it is possible to invert the roles of the ''old'' and the ''new'' 
     86path/revision pairs by clicking the ''Reverse Diff'' link on the changeset page. 
     87 
     88=== Checking the Last Change === 
     89 
     90The last possibility for examining changes is to use the ''Last Change'' 
     91link provided by the TracBrowser. 
     92 
     93This link will take you to the last change that was made on that path. 
     94From there, you can use the ''Previous Change'' and ''Next Change'' links 
     95to traverse the change history of the file or directory. 
    4496 
    4597----