Created
May 5, 2010 14:11
-
-
Save rysk92/390821 to your computer and use it in GitHub Desktop.
vcs_floorのプロトタイプ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import re | |
from urlparse import urlparse | |
vcs_floor_work_path = "/path/vcs_floor_work_path"; | |
if os.path.isdir(vcs_floor_work_path) == False: | |
os.makedirs(vcs_floor_work_path); | |
repos_path = "http://example.com/svn/path/"; | |
o = urlparse(repos_path); | |
local_repos_path = vcs_floor_work_path + '/' + o.netloc + o.path; | |
if os.path.isdir(local_repos_path) == False: | |
os.makedirs(local_repos_path); | |
svn_command = 'svn co ' + repos_path + ' '+ local_repos_path; | |
print svn_command; | |
os.system(svn_command); |
Master Of Version Control Systems で、mvcsってコマンド名にするかな。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
インタフェース
ローカルのサンドボックスへ移動
python main.py cd http://example.com/svn/prj_hoge/trunk/
ローカルのサンドボックスへ移動
python main.py cd _ho (AlcorのAbbreviation Scoringによりリストして補間)
ローカルのサンドボックスをチェックアウト
python main.py co http://example.com/svn/prj_hoge/trunk/
ローカルのサンドボックスのディレクトリのみをチェックアウト
python main.py co -N http://example.com/svn/prj_hoge/
ローカルのサンドボックスをアップデート
python main.py update http://example.com/svn/prj_hoge/trunk/