Changes between Version 2 and Version 3 of TracChangeset


Ignore:
Timestamp:
Oct 1, 2012 9:35:34 AM (11 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracChangeset

    v2 v3  
    1 = Trac チェンジセットモジュール = #TracChangeseModule 
     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 == チェンジセットヘッダ == #ChangesetHeader 
     14== Changeset Header == 
    1515 
    16 ヘッダは、チェンジセット全体の概要を表示します。 
    17 以下のような情報を得ることができます : 
     16The header shows an overview of the whole changeset. 
     17Here you will find information such as: 
    1818 
    19  * コミット日時 (英語版では Timestamp) -- チェンジセットがコミットされた日時 
    20  * 更新者 (英語版では Author) -- チェンジセットをコミットした人 
    21  * ログメッセージ (英語版では Message) -- 更新者による簡単な説明 (コミットログ) 
    22  * 場所 (英語版では Location) -- チェンジセットによって更新などの影響を受けた全てのファイルの親ディレクトリ 
    23  * ファイル (英語版では Files) -- チェンジセットによって更新などの影響を受けたファイルのリスト 
     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 
    2424 
    25 複数のリビジョンのチェンジセットが含まれる場合、 
    26 ''コミット日時'' (英語版では ''Timestamp''), ''更新者'' (英語版では ''Author''), ''ログメッセージ'' (英語版では ''Message'') フィールドは 
    27 表示されません。 
     25If more than one revision is involved in the set of changes being 
     26displayed, the ''Timestamp'', ''Author'' and ''Message'' fields  
     27won't be shown. 
    2828 
    29 リストされているファイル名の前に、色のついた四角が見えるでしょう。 
    30 それぞれの色は、チェンジセットによってファイルがどのような影響を受けたかを示しています。 
     29In front of each listed file, you'll find  a colored rectangle. The color 
     30indicates how the file is affected by the changeset. 
    3131  
    32  * 緑: 追加 
    33  * 赤: 削除 
    34  * 黄色: 更新 
    35  * 青: コピー 
    36  * グレー: 移動 
     32 [[span(style=background:#bfb;border:1px solid #999;font-size:80%;margin-right:.5em,''  '')]] Green: Added \\ 
     33 [[span(style=background:#f88;border:1px solid #999;font-size:80%;margin-right:.5em,''  '')]] Red: Removed \\ 
     34 [[span(style=background:#fd8;border:1px solid #999;font-size:80%;margin-right:.5em,''  '')]] Yellow: Modified \\ 
     35 [[span(style=background:#88f;border:1px solid #999;font-size:80%;margin-right:.5em,''  '')]] Blue: Copied \\ 
     36 [[span(style=background:#ccc;border:1px solid #999;font-size:80%;margin-right:.5em,''  '')]] Gray: Moved \\ 
     37The color legend is located below the header as a reminder. 
    3738 
    38 色の凡例はヘッダの下に備忘録として載っています。 
     39== Diff Views == 
    3940 
    40 == diff ビュー == #DiffViews 
     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): 
    4142 
    42 ヘッダの下がチェンジセットの主な部分となる diff ビューです。それぞれのファイルがセクションで区切って表示されています。そして、各セクションには、チェンジセットによって該当のファイルが影響を受けた部分のみが含まれています。 diff の表示には 2 種類あります: ''インラインで表示'' (英語版では ''inline'') と ''並べて表示'' (英語版では ''side-by-side'') 形式です。 (設定フォームで、 2 つのスタイルを切り替えることができます): 
     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. 
    4345 
    44  * ''インラインで表示'' スタイルはファイルの変更部分を一列で表示します。ファイルから削除された部分は、赤くマーキングされ、追加された部分は緑色にマーキングされます。更新された場合は、古いバージョンは新しいバージョンの上に表示されます。左側の行番号は古いバージョンと新しいバージョンのファイルのそれぞれ変更があった行番号を示しています。 
    45  * ''並べて表示'' スタイルは古いバージョンを左側に、新しいバージョンは右側に表示されます (インラインスタイルよりも横幅が長い画面が必要となるでしょう。) 追加または削除された部分はインラインスタイルと同様に色づけ (それぞれ緑、赤で) されます。更新された部分は黄色の背景で表示されます。 
    46  
    47 加えて、設定フォームで diff の表示方法を調整するためのいろいろなオプションを利用可能となっています: 
    48  * 差分の発生行の前後に何行表示するかを設定することができます。 
    49    (''all'' を使用するとファイル全体が表示されます) 
    50  * 空白行、大文字/小文字、空白文字の変更を無視リストに追加することができます。これらを設定することによって、より素早く機能上の変更を見ることが可能になります。 
     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 
    5150 
    5251 
    53 == diff を見る他の方法 == #TheDifferentWaysToGetaDiff 
     52== The Different Ways to Get a Diff == 
    5453 
    55 === チェンジセットを見る === #ExaminingaChangeset 
     54=== Examining a Changeset === 
    5655 
    57 リポジトリへのチェックインを見る (チェンジセットの [wiki:TracLinks リンク] や 
    58 [wiki:TracTimeline タイムライン] のチェンジセットイベントを辿るなどの操作を行う) 
    59 と、 Trac はチェックインによって発生した変更箇所を 
    60 表示します。 
     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. 
    6160 
    62 そのとき、ナビゲーションリンクに ''前のチェンジセット'' (英語版では ''Previous Changeset'')  
    63 と ''次のチェンジセット'' (英語版では ''Next Changeset'') も表示されます。 
     61There will be also navigation links to the ''Previous Changeset'' 
     62to and ''Next Changeset''. 
    6463 
    65 === リビジョン間の diff を見る === #ExaminingDifferencesBetweenRevisions 
     64=== Examining Differences Between Revisions === 
    6665 
    67 しばしばファイルやディレクトリの複数のリビジョンをまたがった変更を見たい 
    68 ことがあるでしょう。 
    69 もっとも簡単な方法は TracRevisionLog から取得することです。 
    70 そして、 ファイルやディレクトリの '''旧''' リビジョンと '''新''' リビジョンを選択し、 
    71 ''更新を見る'' (英語版では ''View changes'') ボタンをクリックします。 
     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. 
    7271 
    73 === ブランチ間の diff を見る === #ExaminingDifferenceBetweenBranches 
     72=== Examining Differences Between Branches === 
    7473 
    75 バージョン管理システムの主となる特徴の一つとして、 
    76 一般的に "ブランチ" と呼ばれる ''開発系統'' が同時に 2 つ以上走る可能性があるということです。 
    77 Trac はこのような ブランチ間の diff を 
    78 をみることを可能にしています。 
     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. 
    7978 
    80 TracBrowser の '''差分を表示''' (英語版では '''View changes...''') ボタンをクリックすることにより、任意の 
    81 パスとリビジョンの ''Base (From)'' と ''Target (To)'' を選択するフォームを表示します。 
    82 diff の一覧は ''To:'' の内容に合わせるために ''From:'' の内容に適用するべき 
    83 変更点でできています。 
     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. 
    8483 
    85 チェンジセットのページの ''Diff を反転'' (英語版では ''Reverse Diff'') リンクをクリックすることによって、  
    86 '''旧''' と '''新''' のパス/リビジョンの役割を反転させることが可能です。 
     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. 
    8786 
    88 === 最終更新をみる === #CheckingtheLastChange 
     87=== Checking the Last Change === 
    8988 
    90 最後に残った操作として、 
    91 TracBrowser が提供する ''最終更新'' (英語版では ''Last Change'') リンクがあります。 
     89The last possibility for examining changes is to use the ''Last Change'' 
     90link provided by the TracBrowser. 
    9291 
    93 このリンクはそのパスで起こった最後の変更を表示します。 
    94 そこから、 ''前の更新'' (英語版では ''Previous Change'') と ''次の更新'' (英語版では ''Next Change'') リンクを使用 
    95 することで、そのファイルやディレクトリの変更履歴を横断的に見ることができます。 
     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. 
    9695 
    9796----