/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/ja/user-guide/reviewing_changes.txt

  • Committer: Vincent Ladeuil
  • Date: 2012-01-18 14:09:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6468.
  • Revision ID: v.ladeuil+lp@free.fr-20120118140919-rlvdrhpc0nq1lbwi
Change set/remove to require a lock for the branch config files.

This means that tests (or any plugin for that matter) do not requires an
explicit lock on the branch anymore to change a single option. This also
means the optimisation becomes "opt-in" and as such won't be as
spectacular as it may be and/or harder to get right (nothing fails
anymore).

This reduces the diff by ~300 lines.

Code/tests that were updating more than one config option is still taking
a lock to at least avoid some IOs and demonstrate the benefits through
the decreased number of hpss calls.

The duplication between BranchStack and BranchOnlyStack will be removed
once the same sharing is in place for local config files, at which point
the Stack class itself may be able to host the changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
変更をレビューする
 
2
==================
 
3
 
 
4
リープする前にロックする
 
5
-------------------------
 
6
 
 
7
作業が完了したら、恒久的に記録することに先駆けて変更をレビューするのはよい考えです。
 
8
この方法で、何を意図しているのかをコミットすることを確認できます。
 
9
 
 
10
2つのbzrコマンド: **status** と **diff** はとりわけ便利です。
 
11
 
 
12
bzr status
 
13
----------
 
14
 
 
15
 **status** コマンドは最後のリビジョン以降に作業ディレクトリに行われた変更内容を伝えます::
 
16
 
 
17
    % bzr status
 
18
    modified:
 
19
       foo
 
20
 
 
21
``bzr status`` は 変更されないもしくは無視される "つまらない" ファイルを隠します。
 
22
statusコマンドはチェックするためにオプションとしてファイルもしくはディレクトリの名前を渡すことができます。
 
23
 
 
24
bzr diff
 
25
--------
 
26
 
 
27
The **diff** コマンドはすべてのファイルへの変更の全文を標準のunified diffとして表示します。
 
28
これは ''patch''、 ''diffstat''、 ''filterdiff'' と ''colordiff''といった多くのプログラムを通してパイプで引き渡すことができます::
 
29
 
 
30
    % bzr diff
 
31
    === added file 'hello.txt'
 
32
    --- hello.txt   1970-01-01 00:00:00 +0000
 
33
    +++ hello.txt   2005-10-18 14:23:29 +0000
 
34
    @@ -0,0 +1,1 @@
 
35
    +hello world
 
36
 
 
37
 
 
38
``-r`` オプションによって、ツリーは前のリビジョン、もしくは示された2つのリビジョンの違いを表示します::
 
39
 
 
40
    % bzr diff -r 1000..          # r1000 からの全ての変更
 
41
    % bzr diff -r 1000..1100      # 1000 から 1100 までの変更
 
42
 
 
43
1つのリビジョンの変更だけを見たい場合は、 ``-c`` オプションを利用します。
 
44
 
 
45
::
 
46
 
 
47
    % bzr diff -c 1000            # r1000 による変更
 
48
                                  # -r999..1000 と同じ意味
 
49
 
 
50
``--diff-options`` オプションによってbzrは外部のdiffプログラムにオプションを渡して実行します。例です::
 
51
 
 
52
    % bzr diff --diff-options --side-by-side foo
 
53
 
 
54
プロジェクトの中には新旧のファイルのためのパスの始めで接頭辞を表示するためにパッチを好むところもあります。
 
55
``--prefix`` オプションはそのような接頭辞を提供するために使われます。
 
56
ショートカットとして、 ``bzr diff -p1`` は ``patch -p1`` コマンドで機能する形式を生み出します。
 
57