|
|
|
XREAでBazaarをインストール
|
||||||||||
|
XREAのCoreserverで分散バージョン管理システムのBazaarをインストールします。 まず、SSHでサーバーに接続します。 接続できたら、HOMEディレクトリに移動。 Bazaar本体をダウンロードします。 cd wget http://launchpadlibrarian.net/29278796/bzr-1.17.tar.gzダウンロードが出来たら、解凍 tar zxvf bzr-1.17.tar.gz解凍ができたら、解凍先に移動しインストールプログラムを起動します。 cd bzr-1.17 python setup.py install --home $HOME正常に終了したら、HOMEディレクトリに色々と展開されています。 次にBazaarが起動できるように、/virtual/*****/bin/bzrを修正します。 22行目あたりを以下のように修正します。 import os
import sys
import warnings
↓
import os
import sys
sys.path.insert(0, "/virtual/*****/lib/python")
import warnings
Bazaarを起動してみます。export PATH=${HOME}/bin:$PATH
bzr
Bazaar -- a free distributed version-control tool
http://bazaar-vcs.org/
Basic commands:
bzr init makes this directory a versioned branch
bzr branch make a copy of another branch
bzr add make files or directories versioned
bzr ignore ignore a file or pattern
bzr mv move or rename a versioned file
bzr status summarize changes in working copy
bzr diff show detailed diffs
bzr merge pull in changes from another branch
bzr commit save some or all changes
bzr send send changes via email
bzr log show history of changes
bzr check validate storage
bzr help init more help on e.g. init command
bzr help commands list all commands
bzr help topics list all help topics
上のように表示されればインストール成功です。 |
||||||||||
|
リポジトリを作成する。
|
||||||||||
|
まずは適当なフォルダを作成。 mkdir test作成したら移動。 cd test移動後に以下のコマンドを実行。 bzr init実行後以下のように表示されれば作成完了です。 Created a standalone tree (format: pack-0.92) |
||||||||||
|
リポジトリのブランチを作成する。
|
||||||||||
|
BazaarではSVNでいうチェックアウトではなく、個々のPCでブランチを管理します。 (自身はないがそれが分散バージョン管理なのだろう) ブランチの作成には以下のコマンドを実行します。 bzr branch ftp://user:password@host/repository/path※ お使いのPCにBazaarがインストール済みとします。 以下詳細
BazaarではFTPが利用できるので、どこのPCからでもアクセスできて便利です。 |
関連するページ
メモ > Python > WindowsでPythonのSeleniumラッパーSeleneを利用する。
メモ > C# > フォルダ関連
メモ > Android > Galaxy S2 LTE(SC-03D)の電池アイコンを変更する
メモ > C# > .NET Framework 4のメール送信で、長い日本語ファイル名の添付をする方法
メモ > 趣味 > cygwin