ã³ãã³ãã©ã€ã³ã§svnã䜿çšãã人ãããã³bashã¹ã¯ãªããã®ããã°ã©ãã³ã°ã«èå³ããã人ã®ããã«ããã®ãããã¯ã§ã¯ãã¿ãŒããã«ã§åäœãããªããžããªããªãŒã§è€æ°ã®ãæ¯æ¥ãã®æäœãå®è¡ã§ããã€ã³ã¿ã©ã¯ãã£ããªbashã¹ã¯ãªãããsvn browserãã®äœæäŸã説æããŸããããªãã¡ïŒ
- ãªããžããªãé²èŠ§ãã
- ãã°ã衚瀺ãã
- ãã£ã¬ã¯ããªãã³ããŒããŠã¿ã°/ãã©ã³ããäœæããŸã
- ãã£ã¬ã¯ããªã®äœæ/åé€/ååå€æŽ
- æœåº/ãšã¯ã¹ããŒãïŒãã§ãã¯ã¢ãŠã/ãšã¯ã¹ããŒãïŒ
ããã«ãæäœã¯1ã€ãŸãã¯2ã€ã®ãã¿ã³ãæŒãã ãã§è¡ãããã³ã¡ã³ãã®å
¥åã¯ã«ãŠã³ããããŸããããŸãã次ã®ãããªé·ããã¹ãèŠãããå
¥åãããããå¿
èŠã¯ãããŸããã<br> <br>
$svn cp "http://workserver.com/_main_repository/embedded_system/product_xxx/_trunk/main_task/ http://workserver.com/_main_repository/embedded_system/product_xxx/_tags/"
ç«ã®äžãå
éšã®æŠèŠãçµæã¯
svnbã§ããŠã³ããŒãã§ããŸãã
å®è¡å¯èœã«ãããã£ã¬ã¯ããªã§å®è¡ããŸã-svnã®äœæ¥ã³ããŒïŒã©ãã§ãå®è¡ã§ããŸãããäœæ¥ãããªããžããªãžã®ãã¹ãå
¥åããå¿
èŠããããŸãïŒã
PSèšäºã®æåŸã«ãã³ãã³ãã©ã€ã³svn-
path completionã®äœ¿ãããããæ¹åããå¥ã®ãœãªã¥ãŒã·ã§ã³ãè¿œå ããŸããã
ãªãã§ïŒ
SubversionïŒsvnïŒã¯ããœãããŠã§ã¢éçºè
ãªã©ã«ãã£ãŠãã䜿çšãããäžè¬çãªããŒãžã§ã³ç®¡çã·ã¹ãã ã§ãã ããã䜿çšããã«ã¯ãTortoiseSVNãrapidSVNãªã©ã®GUIã¢ããªã±ãŒã·ã§ã³ããããŸãã ãããã¯ããšãããããšã¯ã¹ãããŒã©ãŒ/ãŠã£ã³ããŠãããŒãžã£ãŒ/ãã¡ã€ã«ãã©ãŠã¶ãŒãšçµ±åãããŠããŸãã
äœãšèšã£ãŠã䟿å©ã§ãããGUIã¯å¿
ãããé©åã§ã¯ãããŸããããµãŒããŒäžã®sshã§ã®äœæ¥ãXãµãŒããŒã®æ¬ åŠã䜿çšã§ããªãGUIã䜿çšããããªããšããåœããéããªæ¬²æ±-ã³ãã³ãã©ã€ã³ã倧奜ãã§ãïŒã ã³ãã³ãã©ã€ã³ã§ã¯ã次ã®ãããªãã¹ã«ã¢ã¯ã»ã¹ã§ããŸãã
$svn up
$svn ci -m" "
$svn log
ãšãŠãå¿«é©ã§ãïŒ
ãããã1ã€ã®ããããããããšãã°ãã³ã¡ã³ãããã¡ã€ã«ã®ãªã¹ãã衚瀺ããããã«ãªããžããªã«ããå¥ã®ãã£ã¬ã¯ããªãæäœããå¿
èŠããããšããã«ãç®çã®ãã£ã¬ã¯ããªãžã®ãªããžããªãã¡ã€ã«ã·ã¹ãã ã®ãã¹+ãªããžããªãžã®ãã¹ã§svnãŠãŒãã£ãªãã£ãåŒã³åºãå¿
èŠããããŸãïŒ
$svn list (log) "http://workserver.com/_main_repository/embedded_system/product_xxx/_tags/"
$svn cp "http://workserver.com/_main_repository/embedded_system/product_xxx/_trunk/main_task/ http://workserver.com/_main_repository/embedded_system/product_xxx/_tags/"
ãªããžããªãžã®ãã¹ãšãªããžããªå
ã®äœæ¥ã³ããŒãžã®ãã¹ãèŠããå¿
èŠããªããã«ãŒãããç®çã®ãã£ã¬ã¯ããªãžã®svnãªã¹ãã®æãäœæããããšã¯ãsvn pathåŒæ°ã«ãã¡ã€ã«åã®ãªãŒãã³ã³ããªãŒãããªãããã«äžäŸ¿ã§ãããããããèªäœã¯ããŸã䟿å©ã§ã¯ãããŸããã
ã©ããã
svnã®äœæ¥ã³ããŒã«ã¯ããã£ã¬ã¯ããª.svn /ããããŸãããã®ãã£ã¬ã¯ããªã«ã¯ãä»ã®
圹ã«ç«ããªããŽãã®äžã«ããªããžããªãšäœæ¥ã³ããŒãžã®çµ¶å¯Ÿãã¹ãå«ãæååãå«ããã¡ã€ã«.svn / entriesããããŸãã ããã確èªããã®ã¯ç°¡åã§ãïŒ
$cat .svn/entries | grep ://
絶察ãã¹ããããŸãããããã§ã¯ååã§ã¯ãããŸããããã®ã³ãã³ãã䜿çšããŠç®çã®ãã¹ãã³ããŒããsvnã³ãã³ãã§æäœãå®è¡ããããšããããããŸããããããã»ã¹ãèªååã§ããŸãã ãããã®ãã¹ãèªåçã«ååŸãããªããžããªå
ã®ãã¡ã€ã«/ãã£ã¬ã¯ããªã®ãªã¹ãã衚瀺ãããããã®ãã¹ãå¿
èŠãªæäœã«äœ¿çšã§ããç¹å®ã®ãŠãŒãã£ãªãã£ãŸãã¯ã¹ã¯ãªãããäœæããã
æžããŠããŸãïŒ
äœã®åããæå°éã«æãããã°ã®è¡šç€ºããšã¯ã¹ããŒãããã£ã¬ã¯ããªã®äœæ/åé€ãsvnã䜿çšããã¿ã°/ãã©ã³ãã®äœæãªã©ã®æäœãå¯èœã«ããã
éåžžã«ã·ã³ãã«ã§çŽæç
ãªäœããæžããããšæããŸãã
ç§ã¯ãèµ·åæã«å¶åŸ¡èªäœãè¿ããªãããã€ã³ã¿ã©ã¯ãã£ããªã¢ããªã±ãŒã·ã§ã³ãšããŠæ©èœããbashã¹ã¯ãªãããäœæããããšã«ããŸããã svné¢æ°ãããã³ã°ãããŠãããã¿ã³ã®æŒäžããã£ããããçµæãç»é¢ã«æç»ããŸãã
æ©èœïŒ
å¿
èŠãªå¶åŸ¡ã³ãã³ããå®çŸ©ããŸãã
- ãªããžããªå
ã移åããã«ãŒãœã«ã㌠ã ãªããžããªã®ã«ãŒãã«ç§»åããå·Šãã¿ã³ãã«ãŒãããéžæãããã£ã¬ã¯ããªã«ç§»åããå³ãã¿ã³ããã¡ã€ã«ã®ãªã¹ãã移åããäžãã¿ã³ãšäžãã¿ã³ã
- ãã¡ã€ã«ã®ãªã¹ããç»é¢ã«åãŸããªãå Žåã«ããŒãžãã¹ã¯ããŒã«ããããã®PageUp / PageDown
- h ïŒelpïŒ-ãã«ãã®è¡šç€º
- l ïŒogïŒ-ãã°ã衚瀺ãã
- y ïŒankïŒ-ã³ããŒ
- x ïŒã«ããïŒ-ã«ãã
- p ïŒå³ïŒ-æ¿å
¥
- e ïŒxportïŒ-ãšã¯ã¹ããŒã
- s ïŒããã¯ã¢ãŠãïŒ-æœåº
- m ïŒkdirïŒ-ãã£ã¬ã¯ããªãäœæ
- r ïŒenameïŒ-ååã®å€æŽ
- d ïŒeleteïŒ-åé€
- q ïŒuitïŒ-çµäº
ãã¿ã³ã¯ã¹ã¯ãªããã®æåã«å®çŸ©ãããŠããã奜ã¿ã«åãããŠåå®çŸ©ã§ããŸã
exportããã³
checkoutã³ãã³ãã®å Žåãå
¥åããããã¹ã®å
é ã«$ HOMEå€æ°ãè¿œå ããŠãæ¯å/ home / username /ãå
¥åããå¿
èŠããªãããã«ããŸãã
ãçµäºãã³ãã³ãã«ãããã¹ã¯ãªããã¯ããªããžããªå
ã®ãã£ã¬ã¯ããªãžã®ãã¹ã衚瀺ããŠçµäºããŸãã ã¹ã¯ãªãããå®è¡ã§ããªãã³ãã³ãã©ã€ã³ã§æäœãå®è¡ããå¿
èŠãããå Žåãå°ãªããšãé·ããã¹ãé§åã§ãããæ°åã®
svn listãå®è¡ã§ããŸããã ç®çã®ãã¹ã«ç§»åãããçµäºãã³ãã³ãïŒ
q uitïŒã§ã¹ã¯ãªãããéããŠã衚瀺ããããã¹ãã³ããŒããŸãã
ãã£ããã£ããããã¿ã³
ããŒããŒããèªã¿åãã«ã¯ããã¿ã³å
¥åã®ããã®ç¡éã®åŸ
æ©ã«ãŒããå¿
èŠã§ãããã®ããã次ã®èšèšã䜿çšããŸãã
readã³ãã³ãã¯ãè¡å
šäœãèªã¿åã£ãŠ
EnterãæŒã
ããã®ãåŸ
ã€å Žåã«ã®ã¿å¶åŸ¡ãè¿ããŸãããåãã¿ã³ãæŒãããåŸã«EnterãæŒããããããŸããã
-nNã¹ã€ããã¯ã
EnterãåŸ
ããã«
Næåãèªã¿åã£ãåŸã«å¶åŸ¡ãè¿ãããã«
readã³ãã³ãã«æ瀺ã
ãŸã ã ãšã³ãŒãå¿
èŠãããŸããïŒ
-sããŒïŒãå¿
èŠãªãã®ã¯ãã¹ãŠç»é¢ã«è¡šç€ºããŸãã ïŒD
ã«ãŒãœã«ããŒ
ã¿ãŒããã«ã®ã«ãŒãœã«ããŒïŒããã³DeleteãInsertãªã©ã®ä»ã®ç¹æ®ããŒïŒã¯ã3æåã§æ§æãããç¹æ®ãªãšã¹ã±ãŒãã·ãŒã±ã³ã¹ã«ãã£ãŠéä¿¡ãããŸãã
^ [A-äžç¢å°
^ [B-äžç¢å°
^ [C-å³ç¢å°
^ [D-å·Šç¢å°
opennet.ruã«ã¯ãèªã¿åãã«3æåã䜿çšãããäŸããããŸãïŒ
èªã¿åãã³ãã³ãã®
-n3ã¹ã€ãã ïŒãããã¯ãã¹ã¯ãªãããåäžïŒéåžžã®asciïŒæåã«å¿çããªãå Žåã«äŸ¿å©ã§ããããã®å Žåã¯åãå
¥ããããŸããã
ESCã·ã³ãã«ãåä¿¡ãããšãã«èšå®ããã·ãŒã±ã³ã¹ã®æ®ãã®2æåãåä¿¡ãããšãã«ã€ã³ã¯ãªã¡ã³ããããã®åŸ0ã«ãã©ãŒã«ãããŠå¯Ÿå¿ããåŠçé¢æ°ãåŒã³åºããã©ã°å€æ°ãèšå®ããŸãããäžèŠãªã¯ãªãã¯ãšã·ãŒã±ã³ã¹ã¯ãã¹ãŠç¡èŠããŸããäžèšã®ãªã¹ãã
ã¹ã¯ãªããã³ãŒãã®ESC-æåã¯ã端æ«ïŒãŸãã¯ã³ã³ãœãŒã«ãšãã£ã¿ãŒã®vimãnanoïŒã«å
¥åããããã«
^ [ãšããŠèšè¿°ãããCtrl + VãæŒããŠããEscãæŒããŸãã
378 if [ "$key" == "^[" ]
èå³ã®ãããã¹ãŠã®ãã¿ã³ã³ãŒãã«ã€ããŠãåæ§ã§ãã
æ©èœ
ã¹ã¯ãªãããèšè¿°ãããšããã³ãŒãã®ç¹°ãè¿ãéšåãŸãã¯æå³ã®ç°ãªãéšåã¯ã䟿å©ã«é¢æ°ã§ãã©ãŒããããããŸããããã¯åçŽã«è¡ãããŸãã
äŸïŒ1ã€ã®åŒæ°ããšãé¢æ°ïŒå€æ°$ 1ãä»ããŠïŒ
40
é¢æ°åŒã³åºãïŒãã©ã¡ãŒã¿ãŒã§å€æ°ãæž¡ãïŒïŒ
133 svn_get_list "$SVN_PATH_PTR"
é¢æ°ã¯1ã€ä»¥äžã®åŒæ°ãåãããšãã§ããŸãããããã¯äœããã®æ¹æ³ã§å¶åŸ¡ãããŸããããã®ãããé¢æ°ãåŒæ°ãå¿
èŠãšããåŒæ°ãªãã§åŒã³åºããšãæåŸ
ã©ããã«æ©èœããªãã£ããããšã©ãŒãèŠåãã¹ããŒããããããããšãããããŸã
ã¹ã¯ãªãŒã³
ç»é¢ãžã®åºåã¯
echoã³ãã³ãã«ãã£ãŠå®è¡ãããå¿
èŠãªãã®ãã¹ãŠãé çªã«æç»ããŸãã
- èŠåºã
- åèªãYou are hereããå«ãçŸåšã®ãã£ã¬ã¯ããªãžã®ãã¹ãäžã«ããã³ã³ãã³ãã®ãªã¹ã
- ãã¡ã€ã«/ãã£ã¬ã¯ããªã®ãªã¹ã
- ããŒã
次ã®ç»é¢ãæç»ããåã«ãç»é¢ã
æ¶å»ããå¿
èŠããããŸããããã«ã¯ã
æ確ãªã·ã§ã«ã³ãã³ãããã
ãŸãã ã
ç»é¢ã¯æ¯ååæç»ããå¿
èŠããããŸããã«ãŒãœã«ã移åããå Žåã§ããåºåã«ã¯æéãããããèŠèŠçã«ã¯ç®ç«ã€ãããäœãã§ããŸããã
ã¹ã¿ã€ã«ïŒ
䟿å®äžããã£ã¬ã¯ããªã¯å€ªåã§è¡šç€ºãããã«ãŒãœã«ïŒçŸåšéžæãããŠãããã£ã¬ã¯ããªã¯éã§ãïŒã ç¹°ãè¿ãã«ãªããŸãããESCã·ãŒã±ã³ã¹ã䜿çšããŠã¿ãŒããã«ã®ãã©ã³ãã¹ã¿ã€ã«ãå¶åŸ¡ã§ããŸãã次ã«äŸã瀺ããŸãã
echo "^[[1m ^[[0m ."
åºåãããŸãïŒ
倪å ãéåžžã®ããã¹ã
ã¿ãŒããã«ã®ããã¹ãã䜿ã£ãŠå€ãã®ããšãã§ããè²ä»ããå転ãç¹æ»
ãªã©ã
ã§ããŸã ãã¿ãŒããã«ã®è²ãšã¹ã¿ã€ã«ã®è©³çŽ°ã«ã€ããŠã¯ã
ãã¡ããã芧ãã ãã ã
å®è¡äžã®ã¹ã¯ãªããã¯æ¬¡ã®ããã«ãªããŸãã
Bash svn browser v1.1ã 䜿çšæ³ïŒ
h elpã
q uitã
y copyã
x cutãpasteãlogãremaneã
d eleteã
m akedirã
e xportã
c heckoutã
--------------------------
çŸåšå°[httpïŒ// xxxxxxx / xxxxx / _WorkServer]ïŒ/ _ main_task /ããŒãããŒããŒ/ _trunk /
============
Changelog.txt
License.txt
Readme.txt
ã³ãã³ãã©ã€ã³/
ãã¡ãŒã ãŠã§ã¢/
============
ããã¯ç«¯æ«ããã³ããŒãããããã¹ãã§ãããã¹ãŠãããã¹ãã³ã³ãœãŒã«ã§ãããããç§ã¯åçãäœæããŸããã§ããããªãªãžãã«ãšã®å¯äžã®éãã¯ãã«ãŒãœã«ããããããã¹ããå転ããŠããããšã§ãã
ããŒãžïŒ
ããŒãžã§ã³ç®¡çäžã®ãªããžããªã«å€ãã®ãã¡ã€ã«ãããå Žåããããã®ãªã¹ãã¯ç»é¢ã«åãŸããªãå¯èœæ§ãé«ããã¿ãŒããã«ãã¹ãããããããšã¯æãçŸãã解決çã§ã¯ãããŸããã
$ tput linesã³ãã³ãããšã€ãã«æ»ããé«ãã®ç«¯æ«è¡ã®æ°ãè¿ããŸãã ç»é¢ãžã®ååºåã®åã«ããã®å€ãèŠã€ãããåžžã«ååšãããè¡ã®æ°ã®å Žæãåãå»ããŸãïŒç¢ºä¿ããŸãïŒã
187 LINE_PER_PAGE=$((`tput lines` - 8))
è¡æ°ãå¶éãè¶
ããŠããå Žåãbashã§ã®ç®è¡ã䜿çšããç°¡åãªæäœã§ããªã¹ãã¯ããŒãžã«åå²ãããPgUp / PgDownãã¿ã³ã§ã¹ã¯ããŒã«ã§ããŸãã
ãã€ã
å€ãã®äººã
ã¯ãã€ããŸãã¯ããã€ãããäœã§ããããç¥ã£ãŠããŸããããã¯ããããã®ã®åºåãä»ã®äœããšé¢é£ä»ãã䟿å©ãªæ¹æ³ã§ããç§ã¯æå³çã«ãŠãŒãã£ãªãã£ãèšããŸããã§ããã ãã€ãã¯bashã³ãã³ãããªã³ã¯ããããšãã§ããŸãã ãªãç§ã¯ãããã«ã€ããŠè©±ããŸãããïŒ ç§ã¯1ã€ã®èå³æ·±ãæ©èœã«åºããããã®ã§ïŒ
ãã€ããä»ããŠäœããåŒã³åºããããšãã·ã§ã«ã®åã€ã³ã¹ã¿ã³ã¹ããããããµãã·ã§ã«ãäœæãããŸãã ãããŠã³ãã¯ã芪ã·ã§ã«ã®ãã¹ãŠã®å€æ°ãåã«è¡šç€ºãããŸãããåã«ã¯èŠªã·ã§ã«
ã®ãã¹ãŠã®å€æ°ã®
ããŒã«ã«ã³ããŒããããå€ããã°ããŒãã«ã«ãå€æŽã§ããªãããšã§ãã ã€ãŸã 圌ãã®å©ããåããŠäœãè¿ãããšã¯ã§ããŸããïŒ
äŸãšããŠãç»é¢ã«ãã¡ã€ã«ã®ãªã¹ãã衚瀺ããæ©èœãèããŠã¿ãŸãããã
106
é¢æ°ã¯ãç®çã®è¡ã«ã«ãŒãœã«ã衚瀺ããããã«ãã«ãŒãœã«ã眮ãããŠããè¡çªå·ãç¥ã£ãŠããå¿
èŠããããããã«ãç䟡æ¡ä»¶ãæºãããããšãã«è¡ã«ãŠã³ã¿ãŒãæã£ãŠããå¿
èŠããããŸãïŒè¡113ïŒè¡ã®ããã¹ããå転ããŸãã ã«ãŒãœã«ãèšå®ãããŸããã
é¢æ°ã®æåŸã«ãå°æ¥ïŒãªã¹ãããã®è±åºãå¶åŸ¡ããããã®ã«ãŒãœã«ç§»åé¢æ°ïŒã«åœ¹ç«ã€è¡æ°ïŒ
CNTå€æ°ïŒãåžžã«ããã£ãŠããŸãã
ããããã«ãŠã³ã¿ãŒå€ãè¿ãããšã¯ã§ããŸããïŒ
ãã€ãã®å³åŽã«ãããããã¯ãçµäºãããšããã«ïŒè¡109ïŒã
CNTå€æ°ã¯
ãã€ããäœæãããåãšåãå€ãåããŸãã
è¡æ°ãã«ãŠã³ãããããã ãã«å¥ã®é¢æ°ãäœæããããšãé€ããŠãä»ã®è§£æ±ºçã¯ããããŸããããã®çµæã
ehcoã¯
ãã€ãã®å€åŽã®å€æ°ã«ãªãããããã¯ã®çµæãåŒçšç¬Šã§å²ãŸãã
ãã€ãã§åŒã³åºããŠã芪ã·ã§ã«ãå€æ°ã«å²ãåœãŠãŸãïŒ
65
ãããããã§ãããã³ãŒãããŒãµãŒã¯ãã®èšèšã«å¯Ÿå¿ããŠããããvimã§ã¯ã¡ãªã¿ã«ãããã¯ã©ã€ããããã«åãããŠåŒ·èª¿è¡šç€ºããŸããã§ãã;ïŒ
ã¢ã«ãŽãªãºã
ãã¹ãŠã®ã¹ã¯ãªããã¢ã«ãŽãªãºã ã¯éåžžã«åçŽã§ãããèå³ã®ãã人ã¯ç°¡åã«ç解ã§ããŸãã èŠããã«ã
.svnãã£ã¬ã¯ããªããããã©ããã確èªããŸããããå Žåã¯ãäœæ¥ã³ããŒã«ããããªããžããªã«é¢ããæ
å ±ãååŸããŸãïŒãªããžããªãšãã®äžã®äœæ¥ã³ããŒãžã®çµ¶å¯Ÿãã¹ïŒã .svnãã£ã¬ã¯ããªãèŠã€ãããªãå Žåã¯ããªããžããªãžã®ãã¹ãå
¥åããŠãã ããã
ããã²ãŒã·ã§ã³ïŒ
ãã«ãŒãœã«å·Šã -ãã¹ãŠãåçŽã§ããäœæ¥ã¬ãã«ãžã®ãã¹ãå«ãå€æ°ã§ã«ãŒãã¬ãã«ã«ç§»åããå¿
èŠããããŸããæåŸããã/ãã¹ã©ãã·ã¥ãŸã§ãã¹ãŠãã«ãããã
svn listã³ãã³ãã®åºåãçµæã®ãã¹ãšãšãã«åºåããŸãã 䟿å®äžãå
ã»ã©æ®ãããã£ã¬ã¯ããªã«ã«ãŒãœã«ã眮ããŠãããšããã§ãããããã«ãããªããããŒã«ããèšæ¶ããããªã¹ãã§èŠã€ããŠã«ãŒãœã«ã眮ããšç°¡åã«ã§ããŸãã
ãå³ã®ã«ãŒãœã«ã -çŸåšã®ãã¹ã«ã«ãŒãœã«ã®ããå Žæãè¿œå ããŸãïŒåæã«ãããããã¡ã€ã«ã§ã¯ãªããã£ã¬ã¯ããªã§ããããšã確èªããŸãããã¡ã€ã«ã«ç§»åã§ããªããã=ïŒãæåŸã®ãã£ã¬ã¯ããªã«ã¯ã/ãããããŸãïŒ ãåä¿¡ãããã¹ã§
svn listã³ãã³ãã®åºåã衚瀺ããŸãã
ããŒã ïŒ
ãã³ããŒ/ã«ããããã¯ãªãã¯ããŸãã-ãã¹ãèŠããŠãããŠãã ãã
ã貌ãä»ãããã¯ãªãã¯ããŸãã-cp / mvã³ãã³ããšåã®ã³ãã³ãã§ä¿åãããã¹ã䜿çšããŠ
svnãŠãŒãã£ãªãã£ãåŒã³åºããŸãã
ããã°ã®è¡šç€º/åé€/ååã®å€æŽ/ãšã¯ã¹ããŒã/æœåºããã¯ãªãã¯ããŸãã-ãªããžããªã®çŸåšã®ãã¹ã«å¯ŸããŠã³ãã³ãlog / rm / mv / export / coã䜿çšããŠ
svnãŠãŒãã£ãªãã£ãåŒã³åºããå¿
èŠã«å¿ããŠãè¿œå ã®ãã©ã¡ãŒã¿ãŒïŒæ°ããååïŒååã®å€æŽïŒãã³ã¡ã³ãïŒ
ãã§ãã¯ã¢ãŠãããã³
ãšã¯ã¹ããŒãã³ãã³ãã®å Žåããã¹ã®å
é ã«ãå®å
ãã¹ãšããŠ
$ HOMEããŒã ãã£ã¬ã¯ããªå
ã®ãã¹ãèªåçã«å
¥åããå¿
èŠããããŸãã
/ home / user_name / src / my_proj
src / my_proj-å³ïŒïŒ
è€å
ç§ãæãã§ããããšã¯ãã¹ãŠè¡ãããŸããã
ããããã³ã¡ã³ãã§ã芪æãªãèªè
ã¯ãä»ã«äœãå®è£
ãããã¹ããææ¡ããŸããïŒ ;ïŒ
å€éšãšãã£ã¿ãŒã®ç«ã¡äžãã«ãããmergãšdiffã«ã€ããŠæ€èšããäºå®ã§ãã ããããéçšã¯ãæ¯æ¥ãã§ã¯ãªããéäžãšæ³šæãå¿
èŠã§ãã
ã¹ã¯ãªããã§é»åã¡ãŒã«ã§ææ¡ããã°ãéä¿¡ããŸãã
ãããã«
ã¹ã¯ãªããã¯äŸ¿å©ã§ããããšãå€æããŸãããç§ã¯æ¯æ¥èªå®
ãè·å Žã§äœ¿çšããŠããŸãã ããããããã¯çæ³çã§ãããbash-scripting canonãšã¯ã»ã©é ãã§ãããã ããã«ãããããããã¯ãèªè»¢è»å»ºèšãã§ããã
çºæããããã«ããã¯ãšãŠãçŽ æŽãããã§ãïŒ ïŒ
svnb v1.2ãããŠã³ããŒã
ããŠã³ããŒãããŠãå®è¡å¯èœãã¡ã€ã«ãäœæããäœæ¥ã³ããŒãã£ã¬ã¯ããªã§å®è¡ããŸãã
䟿å®äžã/ usr / local / bin /ã«ã³ããŒã§ããŸã
ãã ã¹ã¿ãŒã«.binãã£ã¬ã¯ããªãäœæããããã$ PATHã«è¿œå ããŠãããã«ã¹ã¯ãªãããä¿åããããšããå§ãããŸãïŒ
代æ¿ãªãã·ã§ã³
èããŠã°ãŒã°ã«ã§èª¿ã¹ãåŸããã¹ã®èªåè£å®ãè¡ãããšã«ããŸããããã®æ©èœã«ããå€ãã®åé¡ã解決ããããªããžããªã§ã®ãµãŒãã£ã³ã¯ããŒã ãã£ã¬ã¯ããªã§ã®æäœãšåããããå¿«é©ã ããã§ãã
ç§ã¯
ãã®ã¹ã¯ãªãããèŠã€ã
ãŠãã¹ãããŸãã-ããã¯ãã¹ãè£å®ããŸããããã¹ãè£å®ããŸãã... man bashãšã€ã³ã¿ãŒããããèªãã§ããã¹ã®è£å®ãå°ç¡ãã«ããŠãçµæãããŠã³ããŒãã§ããŸãïŒ
ããŠã³ããŒãbash_completion_svn
å¥ã®ãã®ã眮ãããã®ãœãŒã¹ãå®è¡ããŸã
$source bash_completion_svn
ãã®è¡ã.bashrcã®æåŸã«è¿œå ãããšãbashã®éå§æã«èªåçã«å®è¡ãããŸãã
䜿çšãã
$ svn listãšå
¥åã ã[TAB]ãæŒããšãçŸåšã®äœæ¥ã³ããŒã«ãã¹ãè¿œå ãããŸãããã®åŸããã¹ãŠãéåžžã©ããã§ãïŒïŒã[TAB]ãæŒããŠãã楜ãã¿ãã ããïŒã
䜿çšçŽ æ
Opennet.ruã·ã§ã«ã¹ã¯ãªãã
ã®æè¡
ãæž
èŽããããšãããããŸããïŒ