Changes between Version 1 and Version 2 of TracChangeset


Ignore:
Timestamp:
Jun 21, 2008, 6:11:58 PM (16 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracChangeset

    v1 v2  
    1 = Trac チェンジセットモジュール =
     1= Trac Changeset Module =
    22[[TracGuideToc]]
    33
    4 Trac には "diffs" - ファイルの差分 を画面表示する機能があります。
     4Trac has a built-in functionality for visualizing “diffs” - changes to files.
    55
    6 チェンジセットといってもいろいろな種類があります。
    7 あるリビジョンにおけるファイルの変更だったり、
    8 異なるリビジョン間における変更を累積したものもありますが、
    9 結局のところどんな差分でも表示することができます。
     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 チェンジセットビューは ''ヘッダ'' と
    12 ''diff ビュー'' の2つで構成されています。
     11The changeset view consists of two parts, the ''header''
     12and the ''diff views''.
    1313
    14 == チェンジセットヘッダ ==
     14== Changeset Header ==
    1515
    16 ヘッダは、チェンジセット全体の概要を表示します。
    17 以下のような情報を得ることができます :
     16The header shows an overview of the whole changeset.
     17Here you will find information such as:
    1818
    19  * コミット日時 -- チェンジセットがコミットされた日時
    20  * 更新者 -- チェンジセットをコミットした人
    21  * ログメッセージ -- 更新者による簡単な説明 (コミットログ)
    22  * ファイル -- チェンジセットによって更新などの影響をうけたファイルのリスト
     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 * Files -- A list of files affected by this changeset
    2323
    24 複数のリビジョンのチェンジセットが含まれる場合、
    25 ''コミット日時'', ''更新者'', ''ログメッセージ'' フィールドは
    26 表示されません。
     24If more than one revision is involved in the set of changes being
     25displayed, the ''Timestamp'', ''Author'' and ''Message'' fields
     26won't be shown.
    2727
    28 リストされているファイル名の前に、色のついた四角が見えるでしょう。
    29 それぞれの色は、チェンジセットによってファイルがどのような影響を受けたかを示しています。
     28In front of each listed file, you'll find  a colored rectangle. The color
     29indicates how the file is affected by the changeset.
    3030 
    31  * 緑: 追加
    32  * 赤: 削除
    33  * 黄色: 更新
    34  * 青: コピー
    35  * グレー: 移動
     31 * Green: Added
     32 * Red: Removed
     33 * Yellow: Modified
     34 * Blue: Copied
     35 * Gray: Moved
    3636
    37 色の凡例はヘッダの下に備忘録として載っています。
     37The color legend is located below the header as a reminder.
    3838
    39 == diff ビュー ==
     39== Diff Views ==
    4040
    41 ヘッダの下がチェンジセットの主な部分となる diff ビューです。それぞれのファイルがセクションで区切って表示されています。そして、各セクションには、チェンジセットによって該当のファイルが影響を受けた部分のみが含まれています。 diff の表示には 2 種類あります: ''インライン'' と ''並べて表示'' 形式です。 (設定フォームで、 2 つのスタイルを切り替えることができます):
     41Below 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):
    4242
    43  * ''インライン'' スタイルはファイルの変更部分を一列で表示します。ファイルから削除された部分は、赤くマーキングされ、追加された部分は緑色にマーキングされます。更新された場合は、古いバージョンは新しいバージョンの上に表示されます。左側の行番号は古いバージョンと新しいバージョンのファイルのそれぞれ変更があった行番号を示しています。
    44  * ''並べて表示'' スタイルは古いバージョンを左側に、新しいバージョンは右側に表示されます (インラインスタイルよりも横幅が長い画面が必要となるでしょう。) 追加または削除された部分はインラインスタイルと同様に色づけ (それぞれ緑、赤で) されます。更新された部分は黄色の背景で表示されます。
     43 * 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.
     44 * 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.
    4545
    46 加えて、設定フォームで diff の表示方法を調整するためのいろいろなオプションを利用可能となっています:
    47  * 差分の発生行の前後に何行表示するかを設定することができます。
    48    (''all'' を使用するとファイル全体が表示されます)
    49  * 空白行、大文字/小文字、空白文字の変更を無視リストに追加することができます。これらを設定することによって、より素早く機能上の変更を見ることが可能になります。
     46In addition, various advanced options are available in the preferences form for adjusting the display of the diffs:
     47 * You can set how many lines are displayed before and after every change
     48   (if the value ''all'' is used, then the full file will be shown)
     49 * You can toggle whether blank lines, case changes and white space changes are ignored, thereby letting you find the functional changes more quickly
    5050
    5151
    52 == diff を見る他の方法 ==
     52== The Different Ways to Get a Diff ==
    5353
    54 === チェンジセットを見る ===
     54=== Examining a Changeset ===
    5555
    56 リポジトリへのチェックインを見るとき、
    57 チェンジセットの [wiki:TracLinks リンク] や [wiki:TracTimeline タイムライン]
    58 のチェンジセットイベントをみるようなとき、 Trac はチェックインによって
    59 変更された部分を表示するでしょう。
     56When viewing a repository check-in, such as when following a
     57changeset [wiki:TracLinks link] or a changeset event in the
     58[wiki:TracTimeline timeline], Trac will display the exact changes
     59made by the check-in.
    6060
    61 そのとき、ナビゲーションリンクに ''前のチェンジセット''
    62 と ''後のチェンジセット'' が表示されるでしょう。
     61There will be also navigation links to the ''Previous Changeset''
     62to and ''Next Changeset''.
    6363
    64 === リビジョン間の diff を見る ===
     64=== Examining Differences Between Revisions ===
    6565
    66 しばしば ファイルやディレクトリの複数のリビジョンをまたがった変更を見たい
    67 ことがあるでしょう。
    68 もっとも簡単な方法は TracRevisionLog から取得することです。
    69 そして、 ファイルやディレクトリの '''旧''' リビジョンと '''新''' リビジョンを選択し、
    70 ''更新を見る''ボタンをクリックします。
     66Often you'll want to look at changes made on a file
     67or on a directory spanning multiple revisions. The easiest way
     68to get there is from the TracRevisionLog, where you can select
     69the ''old'' and the ''new'' revisions of the file or directory, and
     70then click the ''View changes'' button.
    7171
    72 === ブランチ間の diff を見る ===
     72=== Examining Differences Between Branches ===
    7373
    74 バージョン管理システムの主となる特徴の一つとして、
    75 一般的に "ブランチ" と呼ばれる ''開発系統'' が同時に2つ以上走る可能性があるということです。
    76 Trac はこのような ブランチ間の diff を
    77 をみることを可能にしています。
     74One of the core features of version control systems is the possibility
     75to work simultaneously on different ''Lines of Developments'', commonly
     76called “branches”. Trac enables you to examine the exact differences
     77between such branches.
    7878
    79 TracBrowser の '''変更箇所を見る...''' ボタンをクリックすることにより、任意の
    80 パスとリビジョンの ''Base (From)'' と ''Target (To)'' を選択するフォームを表示します。
    81 diff の一覧は ''To:'' の内容に合わせるために ''From:'' の内容に適用するべき
    82 変更点でできています。
     79Using the '''View changes ...''' button in the TracBrowser allows you to enter
     80''From:'' and ''To:'' path/revision pairs. The resulting set of differences consist
     81of the changes that should be applied to the ''From:'' content in order
     82to get to the ''To:'' content.
    8383
    84 チェンジセットのページの ''Diff を反転'' リンクをクリックすることによって、
    85 '''旧''' と '''新''' パス/リビジョンの役割を反転させることが可能です。
     84For convenience, it is possible to invert the roles of the ''old'' and the ''new''
     85path/revision pairs by clicking the ''Reverse Diff'' link on the changeset page.
    8686
    87 === 最終更新をみる ===
     87=== Checking the Last Change ===
    8888
    89 最後に、変更にみるにあたっては、
    90 TracBrowser が提供する ''最終更新'' リンクを使用することでしょう。
     89The last possibility for examining changes is to use the ''Last Change''
     90link provided by the TracBrowser.
    9191
    92 このリンクはそのパスで起こった最後の変更を表示します。
    93 そこから、 ''前のチェンジセット'' と ''後のチェンジセット'' リンクを使用
    94 することで、そのファイルやディレクトリの変更履歴を横断的に見ることができます。
     92This link will take you to the last change that was made on that path.
     93From there, you can use the ''Previous Change'' and ''Next Change'' links
     94to traverse the change history of the file or directory.
    9595
    9696----