Next: , Previous: , Up: バージョンコントロール   [Contents][Index]


30.1.2 バージョンコントロールとモードライン

バージョンコントロール配下のファイルをvisitしたとき、Emacsはモードラインにそれを示します。たとえば‘Bzr-1223’と表示された場合、そのファイルにBazaarが使用され、カレントのリビジョンIDが1223であることを示します。

The character between the back-end name and the revision ID indicates the version control status of the work file. In a merge-based version control system, a ‘-’ character indicates that the work file is unmodified, and ‘:’ indicates that it has been modified. ‘!’ indicates that the file contains conflicts as result of a recent merge operation (see ブランチのマージ), or that the file was removed from the version control, or that it is versioned but also ignored, something that usually should not happen (see バージョンコントロールファイルを無視する). Finally, ‘?’ means that the file is under version control, but is missing from the working tree.

ロックベースのシステムでは、‘-’はファイルがロックされていないことを示し、‘:’はファイルが他のユーザー(たとえば‘jim’)にロックされていることを示し、‘RCS:jim:1.3’のように表示されます。‘@’は、そのファイルがローカルに追加されたが、まだマスターレポジトリにコミットされていないことを示します。

グラフィカルなディスプレイでは、モードラインのインジケーターの上にマウスを移動すると、ツールチップが表示され、それにはバージョンコントロール状態の、より多くの説明が表示されます。インジケーターをmouse-1でクリックすると、メニューバーの‘Tools / Version Control’と同じVCコマンドがのメニューがポップアップします。

Auto Revertモード(バッファーのリバートを参照してください)がバージョンコントロール配下のバッファーをリバートするとき、これはモードラインのバージョンコントロール情報を更新します。しかし、Auto Revertモードは、作業ファイルの変更をともなわない、カレントのEmacsセッションの外でのバージョンコントロール状態の変化の情報は、正しく更新しないかもしれません。auto-revert-check-vc-infotにセットすると、Auto Revertモードは、作業ファイル自身を変更していなくても、auto-revert-interval秒ごとにバージョンコントロール状態の情報を更新します。CPU使用率はバージョンコントロールシステムに依存しますが、通常はそれほど高価な処理ではありません。

This page has generated for branch:master, commit:762705fb24fd90db318f2e51c1e762452d26f7e2 to check Japanese translation.