ãµã¼ããã¼ãã£è£½ã®ã³ã¼ãï¼ãã¨ãã° CakePHPï¼ãããã¸ã§ã¯ãã®ãªãã¸ããªã«åãè¾¼ãã§ä½¿ããããªå ´åããã¼ã¸ã§ã³ã¢ãããçµæ§æéã«ãªãã¾ãããã¼ã¸ã§ã³ã¢ããã®åº¦ã«å¢æ¸ãããã¡ã¤ã«ã svn add ã svn delete ããã®ã¯é¢åã§ããããã¡ã¤ã«åã®å¤æ´ãã¡ããã¨ãã¬ã¼ã¹ããããªã svn rename ããããããªãã§ããããã¾ããCakePHP ã®ã½ã¼ã¹èªä½ã«æãå ããããããªå ´åããã¼ã¸ä½æ¥ãé¢åã«ãªãã¾ãã
ããããå ´åãã³ããã©ã³ãã svn_load_dirs.pl ã¨ããã¹ã¯ãªããã使ãã¨ãæ¯è¼ç楽ã«ç®¡çã§ãã¾ããsvnbook ã§ã
ã¨ããæãã§è»½ã触ãããã¦ããã®ã§ãããã©ããå©ç¨ãã¦ããæ¹ãå°ãªãæ°ãããã®ã§ãCakePHP ãä¾ã«ã·ããªãªãã¼ã¹ã§å©ç¨æ¹æ³ãæ¸ãã¦ã¿ã¾ããWindows ã§ã®å®è¡æ¹æ³ãæ¸ãã¾ããã©ãä»ã®ç°å¢ãªããã£ã¨æ¥½ã ã¨æãã¾ãã
ï¼2011-08-09 追è¨ï¼
é·ãæé ãæ¸ããã®ã§ããã®ç®¡çæ¹æ³ãé¢åã ã¨ããå°è±¡ãä¸ãã¦ãã¾ã£ã¦ããæ°ããã¦ãã¾ããã»ã»ã»ãsvn_load_dirs.pl ã使ãã®ã¯ãã¼ã¸ã§ã³ã¢ããã®ã¨ãã ãã§ããã¨ãããããã®éç¨ãå§ããããã¨ããã ãã§ããã° TortoiseSVN ã ãã§ãå®çµããä½æ¥ã§ãã®ã§ãæ°è»½ã«ã試ããã ããã
ï¼2011-08-09 è¿½è¨ ããã¾ã§ï¼
åèæ¸ç±
Subversionå®è·µå ¥é:é人ããã°ã©ãã«å¦ã¶ãã¼ã¸ã§ã³ç®¡ç(第2ç)
- ä½è : Mike Mason,ã§ã³ãããã
- åºç社/ã¡ã¼ã«ã¼: ãªã¼ã 社
- çºå£²æ¥: 2007/04/21
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
- è³¼å ¥: 35人 ã¯ãªãã¯: 672å
- ãã®ååãå«ãããã° (102件) ãè¦ã
ãã®æ¬ã®ã第11ç« ãµã¼ããã¼ãã£è£½ã®ã³ã¼ããï¼åçã§ã¯ç¬¬10ç« ï¼ã§è©³ãã解説ããã¦ãã¾ãã
以ä¸ã¯èªåãªãã«ãã¦ãã¦çãåãè¾¼ãã§ã¾ã¨ããªãããã¤ããã§ããããã以å¤ã®æ å ±æºãã»ã¨ãã©ãªãã®ã§ã丸ã³ãã¼ã«è¿ãæãã«ãªã£ã¦ãããããããªããã
åæºå
perl 㨠svn ã®ã¤ã³ã¹ãã¼ã«
å®è¡ã«ã¯ perl ã®å®è¡ç°å¢ã¨ svn ã® CUI ã¯ã©ã¤ã¢ã³ããå¿ è¦ã§ãã
perl ã®ç°å¢ã«ã¯ ActivePerl ããã使ã£ã¦ãã¾ãããStrawberry Perl ã使ã£ã¦ãããã§ãããã
svn ã¯ã©ã¤ã¢ã³ã㯠CollabNet Subversion ã使ã£ã¦ãã¾ãããã¦ã¼ã¶ç»é²ãå¿ è¦ãªã®ã§ãsubversion: Subversion Packages ããé©å½ã«ä»ã®ãã®ãæ¾ã£ã¦ãããããããã¾ããã
svn_load_dirs.pl ã®åå¾
http://svn.collab.net/repos/svn/trunk/contrib/client-side/svn_load_dirs/- http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_load_dirs/
ã§å ¬éããã¦ãã¾ãã®ã§ããã®ãã£ã¬ã¯ããªããã§ãã¯ã¢ã¦ããã¦ãã¾ãã¾ãã
# 2010-03-23 ãªãã¸ããªç§»åã«ã¤ã URL ä¿®æ£ # svn co http://svn.collab.net/repos/svn/trunk/contrib/client-side/svn_load_dirs/ svn co http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_load_dirs/
svn ã§åå¾ããã®ãé¢åãªå ´åã¯ã
http://svn.collab.net/repos/svn/trunk/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in- http://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_load_dirs/svn_load_dirs.pl.in
ãç´æ¥ãã¦ã³ãã¼ãããå½¢ã§ãããã§ãããããsvn ã®ã½ã¼ã¹ãæå ã«ããå ´åã¯ããã®ä¸ã«ãå«ã¾ãã¦ããã¯ãã§ãã
svn_load_dirs.pl ã®ç·¨é
åå¾ãã¡ã¤ã«ã¯ãã¡ã¤ã«åæ«å°¾ã« .in ãã¤ãã¦ãã¾ããããã®ã¾ã¾å®è¡ããã« sed ãªããã§æ¸ãæãã¦ä½¿ãã¨ãããã¨ã¿ããã§ãã
Windows 㧠sed ãå
¥ãã¦ããæ¹ãå°ãªãã§ãããããããã§ã¯ svn_load_dirs.pl ã¨ããå称ã§ã³ãã¼ãã¦ããã®ãã¡ã¤ã«ãç·¨éãããã¨ã«ãã¾ããsvn ã§åå¾ããå ´åã¯ãdiff ãè¡ããããããã«ä»¥ä¸ã®ããã«ãã¦ã³ãã¼ããã®ããªã¹ã¹ã¡ã§ãã
>svn cp svn_load_dirs.pl.in svn_load_dirs.pl A svn_load_dirs.pl
ç·¨éå
容ã§ãããsvn_load_dirs.pl ã® 26 è¡ç®ãããã«ã
# Specify the location of the svn command. my $svn = '@SVN_BINDIR@/svn';
ã®ãããªç®æãããã®ã§ãsvn.exe ã®ãã¹ã«æ¸ãæãã¦ãã¾ãã¾ãã
my $svn = 'D:\CollabNet Subversion\svn';
ã®ãããªæãã§ãã
ã¾ãã186 è¡ç®ã«
elsif ( -f "$ENV{HOME}/.subversion/config" )
ã¨ããè¡ãããã¾ãããç°å¢å¤æ° HOME ãè¨å®ãã¦ããªç°å¢ã®å ´å
Use of uninitialized value in concatenation (.) or string at svn_load_dirs.pl.in line 178.
ã¿ãããªè¦åãåºã¦é¬±é¶ããã®ã§ã以ä¸ã®ããã«æ¸ãæãã¦ãããã»ããããããããã¾ããã
elsif ( exists($ENV{HOME}) && "$ENV{HOME}/.subversion/config" )
ããã«ãPerl ã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ï¼ï¼ï¼
Argument "2.07_02" isn't numeric in subroutine entry at D:\svn_load_dirs\svn_load_dirs.pl line 16.
ãããªè¦åãçºçãã¾ãããã®ã¾ã¾ã§ãåãã®ã§ãããæ°æã¡æªãã®ã§ 16 è¡ç®ã®
use File::Path 1.0404;
ã
use File::Path;
ã«æ¸ãæãã¦ãã¾ãã¾ãããã¶ããããªå¤ããã¼ã¸ã§ã³ã® File::Path ãå ¥ãã¦ãã人ã¯ããªããã大ä¸å¤«ã§ãããã
ãªãã¸ããªã®åæè¨å®
以é svn ã³ãã³ãã§å¦çãã¦ãã¾ãããsvn_load_dirs.pl 以å¤ã®ç®æ㯠TortoiseSVN ã§å®è¡ãã¦ã大ä¸å¤«ã§ãã
src ãã£ã¬ã¯ããªã®ä½æ
èªåã®ããã¸ã§ã¯ãç¨ã«ã½ã¼ã¹ç¨ãã£ã¬ã¯ããªãä½æãã¾ããæ§æã¯è²ã ããã¨æãã¾ãããããã§ã¯æ·±ãèããã« src é ä¸ã« trunk/branches/tags ãä½ã£ã¦ããã¾ããï¼ããã¸ã§ã¯ãåã hoge ã§ãhttp://svn_server/hoge ããªãã¸ããªã® URL ã§ããï¼
>svn co http://svn_server/hoge >cd hoge >svn mkdir src src/trunk src/branches src/tags A src A src\trunk A src\branches A src\tags >svn ci -m "ã½ã¼ã¹ãã¡ã¤ã«æ ¼ç´ç¨ã®ãã£ã¬ã¯ããªãä½æã" Adding src Adding src\branches Adding src\tags Adding src\trunk Committed revision 1.
ãµã¼ããã¼ãã£è£½ã³ã¼ãã®æ ¼ç´å ãä½æ
ãµã¼ããã¼ãã£è£½ã®ã³ã¼ãããã¾ãæ±ãããããã§ãããã¾ãååã¨ãã¦ãå ¥æãããµã¼ããã¼ãã£è£½ã®ã³ã¼ãã¯ãæãå ããã«ãã®ã¾ã¾ãªãã¸ããªã«æ ¼ç´ãããã¨ããã®ãããã¾ããããããªãã¨ãã¼ã¸ã§ã³ã¢ããã®éã«å¤æ´ç¹ããã¼ã¸ã§ãã¾ããã
ã¾ãããµã¼ããã¼ãã£è£½ã®ã³ã¼ãã¯èªããã¸ã§ã¯ãã®ã½ã¼ã¹ã¨ã©ã¤ããµã¤ã¯ã«ãç°ãªãã®ã§ãtrunk/tags/branches ã®å¤ã«é ç½®ãã¾ããåèæ¸ç±ã§ã¯ãè¤æ°ã®ä¾çµ¦å ããã¤ã³ãã¼ãããå ´åã¯
- åãè¾¼ããã¡ã¤ã«ãã³ã³ãã¤ã«æ¸ã¿ã®ã©ã¤ãã©ãªãããããã¡ã¤ã«ãªã /vendor ãã£ã¬ã¯ããª
- åãè¾¼ããã¡ã¤ã«ãã½ã¼ã¹ãã¡ã¤ã«ã§ããã° /vendorsrc ãã£ã¬ã¯ããª
ã¨ãããããªå称ãæ¨å¥¨ãã¦ãã¾ããããä¾çµ¦å ãã²ã¨ã¤ã ãã ã¨ããã£ã¦ããå ´å㯠/cake ã®ããã«ãã®ããã¸ã§ã¯ãç¨ã®ãã£ã¬ã¯ããªãä½æããå½¢ã§ãããã§ãããã
æ±ãè¨èªã PHP ã®å ´åã/vendor ã¯ãã¾ãå¿ è¦ããã¾ããã®ã§ /vendorsrc ã ãä½ã£ã¦ããã¾ãã
>svn mkdir vendorsrc A vendorsrc >svn ci -m "ãã³ããã©ã³ãç¨ã®ãã£ã¬ã¯ããªãä½æã" Adding vendorsrc Committed revision 2.
CakePHP ã®ã½ã¼ã¹ãåãè¾¼ã¿
ã§ã¯æ©é CakePHP ã®ã½ã¼ã¹ã³ã¼ãã vendorsrc ã«åãè¾¼ãã§ã¿ã¾ãããã
æ¸ç±ã«ããã¨
/vendorsrc/ï¼ãã³ãåï¼/ï¼ãããã¯ãåï¼/current
ã®ãããªå称ã§åãè¾¼ããã¨ã«ãªã£ã¦ãã¾ãããããã§ã¯ãã³ãåã¨ãããã¯ãåãä¸ç·ããã«ãcakeãã¨ãã¦åãè¾¼ããã¨ã«ãã¾ããã¡ãªã¿ã«ãã®ã/vendorsrc/ï¼ãã³ãåï¼ãã®ãããªãã³ãï¼ãããã¯ãæ¯ã®ãã£ã¬ã¯ããªãããã³ããã©ã³ãããããã«æ ¼ç´ããã³ã¼ãï¼current çï¼ãããã³ããããããã¨å¼ã¶ããã§ãã
CakePHP 1.2.2.8120 ã®ã½ã¼ã¹ï¼.zip ã .tar.gz ãå±éãããã®ï¼ã E:\sources\cake_1.2.2.8120 ã«ããã¨ãã¦ã»ã»ã»
>svn import --no-auto-props -m "CakePHP 1.2.2.8120 ãã¤ã³ãã¼ãã" E:\sources\cake_1.2.2.8120 http://svn_server/hoge/vendorsrc/cake/current E:\sources\cake_1.2.2.8120 http://svn_server/hoge/vendorsrc/cake/current Adding E:\sources\cake_1.2.2.8120\app Adding E:\sources\cake_1.2.2.8120\app\locale Adding E:\sources\cake_1.2.2.8120\app\locale\eng : Adding E:\sources\cake_1.2.2.8120\README Committed revision 3.
ãã㧠current ã¨ããå称ã使ã£ã¦ãã¾ãããé常ã§ããã¨ããã® trunk ã®ã¤ã¡ã¼ã¸ã§ãããµã¼ããã³ãã®äººãããã trunk ã¨ãã¦ä½¿ã£ã¦ããæ§ãã·ãã¥ã¬ã¼ããã¦ããã¨æãã°ããã§ãããã
ãªãããã㧠--no-auto-props ãªãã·ã§ã³ãæå®ãã¦ãã¾ããã
- CVS ã§ç®¡çããã¦ããã½ã¼ã¹ãåãè¾¼ããããªå ´åãã½ã¼ã¹ã« $Author$ ã $Id$ ãå«ã¾ãã¦ããã±ã¼ã¹ããã
- auto-props 㧠svn:keywords ãèªåçã«è¨å®ãã¦ããå ´åã¯ãããããã¼ã¯ã¼ãå±éããã¦ãã¾ã
- --no-auto-props ãæå®ãããã¨ã§ãããææ¢ã§ãã
ã¨ããçç±ã§æå®ãã¦ããããã§ããä¸è¨ã®æ¡ä»¶ã«å½ã¦ã¯ã¾ããªããªãæå®ããªãã¦ãåé¡ãªãã§ããããï¼ãªã®ã§ãTortoiseSVN ã§å®è¡ãã¦ãåé¡ããã¾ãããï¼
åãè¾¼ãã ãã¼ã¸ã§ã³ã¯ 1.2.2.8120 ãªã®ã§ããã®ãã¼ã¸ã§ã³ã®ã¿ã°ãä½æãã¦ããã¾ããcurrent ã¨åé層ã«ç½®ããã¨ãé¤ãã°ãæ®éã® trunk/tags ã®éç¨ã¨åãã§ããã
>svn copy -m "CakePHP ã®ãã³ãããããã« 1.2.2.8120 ã¨ã¿ã°ä»ãã" http://svn_server/hoge/vendorsrc/cake/current http://svn_server/hoge/vendorsrc/cake/1.2.2.8120 Committed revision 4.
ãã®æç¹ã§ãªãã¸ããªã®æ§æã¯ãããªæãã«ãªã£ã¦ãã¾ãã
/vendorsrc ââcake ââ1.2.2.8120 ââcurrent
CakePHP ã®ã½ã¼ã¹ã trunk é ä¸ã«ã³ãã¼
æ®éã« SVN ä¸ã§ã³ãã¼ãã¾ãã
>svn copy -m "CakePHP ã src/trunk/htdocs ã¨ãã¦åãè¾¼ã¿ã" http://svn_server/hoge/vendorsrc/cake/1.2.2.8120 http://svn_server/hoge/src/trunk/htdocs Committed revision 5.
以éãã¼ã¸ã§ã³ã¢ããã¾ã§ã¯ trunk/htdocs é ä¸ã§æ®éã«éçºãé²ãã¾ãã
CakePHP ã®ãã¼ã¸ã§ã³ã¢ãã
ãããããæ¬é¡ãCakePHP 1.2.2.8120 ã§éçºãé²ãã¦ããã¨ããã«ãCakePHP 1.2.4.8284 ãå ¬éããã¦ããã¼ã¸ã§ã³ã¢ããããããªã£ãã¨ãã¾ãã
ãã®ãããªå ´åã«ã¾ãææ°ã®ã½ã¼ã¹ãåãè¾¼ãå 㯠/vendorsrc/cake/current ã§ãã/vendorsrc/cake/1.2.4.8284 ã®ãããªå½¢ã§æ ¼ç´ããããªãããããã¾ãããããã¼ã¸ã§ã³è¡¨è¨ã®ãã£ã¬ã¯ããªã¯ã¿ã°ã®ããã«ä½¿ã£ã¦ããããã§ããããã¾ã㯠trunk ã¨åãããã«ä½¿ããã¦ãã current ã«å¤æ´ãåãè¾¼ã¿ãããã«ã¿ã°ä»ããã形㧠1.2.4.8284 ã®ãã£ã¬ã¯ããªãä½æãã¹ãã§ãã
ãããããã¨ã®å©ç¹ã¯ï¼æ®éã®ã¿ã°ã®å©ç¹ã¨åãã§ããï¼ãSVN ä¸ã§åä¸ãã¡ã¤ã«ã®å¤æ´ã¨ãã¦æ±ãããã¨ã§ãã1.2.4.8284 ã«ãããªãæ¾ãè¾¼ãã å ´åã¯å¥ãã¡ã¤ã«ã¨ãã¦æ±ãããã®ã§å·®åæ å ±ãåå¾ã§ãã¾ãããããªãã¸ããªä¸ã§ä½è¨ãªå®¹éãé£ããã¨ã«ãªãã¾ãã
ãã¼ã¸ã§ã³ã¢ããã«ãããã¡ã¤ã«ã®è¿½å ãåé¤ãç¡ãå ´å㯠/vendorsrc/cake/current ãä¸æ¸ããã¦ãã¾ãã°ãããã§ãããããã§ãªãå ´åã¯
- 追å ããããã¡ã¤ã«ã svn add
- åé¤ããããã¡ã¤ã«ã svn delete
- ãªãã¼ã ããããã¡ã¤ã«ã svn rename
ããå¿ è¦ããã£ã¦é¢åã§ããsvn_load_dirs.pl ã使ããã¨ã§ãã®ä½æ¥ãèªååã§ãã¾ãã®ã§ãããã使ããã¨ã«ãã¾ãã
svn_load_dirs.pl ã®å®è¡
svn_load_dirs.pl ã§æå®ããå¼æ°ã¯ä»¥ä¸ã®ã¨ããã§ããï¼ä½¿ãæ¹ã¯ svn_load_dirs.README ã«ã詳ããè¼ã£ã¦ã¾ããï¼
- -t ãªãã·ã§ã³
- ä½æããã¿ã°ã®ååãããã§ã¯åãè¾¼ããã¼ã¸ã§ã³ã§ãã 1.2.4.8284 ãæå®ã
- 第ä¸å¼æ°
- ãã³ããã©ã³ãã®ãã¼ã¹URL
- 第äºå¼æ°
- ãã¼ã¹URLé ä¸ã«ããã«ã¬ã³ããã£ã¬ã¯ããªã®å称
- 第ä¸å¼æ°
- ã¤ã³ãã¼ãå ã®ãã£ã¬ã¯ããª
ã¨ãããã¨ã§ãä»åã®å ´åã¯
cd /d E:\sources perl D:\svn_load_dirs\svn_load_dirs.pl -t 1.2.4.8284 http://svn_server/hoge/vendorsrc/cake/ current cake_1.2.4.8284
ãããªæãã§å®è¡ãã¾ããå¼æ°ã®èª¬æãè¦ãéã㯠cd ã§ã«ã¬ã³ããã£ã¬ã¯ããªãå¤æ´ããã«
perl D:\svn_load_dirs\svn_load_dirs.pl -t 1.2.4.8284 http://svn_server/hoge/vendorsrc/cake/ current E:\sources\cake_1.2.4.8284
ãããªæãã«ãã¦ãå®è¡ã§ããããªããã§ããã第ä¸å¼æ°ã§æå®ããå¤ã¯ãã®ã¾ã¾ã³ããããã°ã§ä½¿ããã¦ãã¾ãã¾ããå¾è ã®å®è¡æ¹æ³ã ã¨ã
Load E:\sources\cake_1.2.4.8284 into vendorsrc/cake/current.
ã®ããã«çµ¶å¯¾ãã¹ã®æ å ±ãã³ããããã°ã«æ®ã£ã¦ãªãã ãå«ãªã®ã§ãåè ã®æ¹æ³ã§å®è¡ãã¦ãã¾ãã
å®è¡ããã¨
Directory cake_1.2.4.8284 will be tagged as 1.2.4.8284 Please examine identified tags. Are they acceptable? (Y/n)
ã¨èããã¾ãããã㧠Enter ãæ¼ãã°ãææ°çã /vendorsrc é ä¸ã«åãè¾¼ã¾ãã1.2.4.8284 ã®ã¿ã°ãä½æããã¾ãã
ææ°ãã¼ã¸ã§ã³ã® trunk ã¸ã®åãè¾¼ã¿
ã¾ã trunk ä¸ã® CakePHP ã¯å¤ãã¾ã¾ãªã®ã§ã/vendorsrc ãããã¼ã¸ãã¦ãã¾ãã¾ãã
ã¾ãããã¼ã¸å ãå¤æ´ããã¦ããªãç¶æ ã§ãããã¨ã確èªãã¦ããã¾ãã
svn stat src/trunk/htdoc
ããå¤æ´ããã¦ããããã³ããããªãåãæ¶ããªãå¥ãã£ã¬ã¯ããªã«ãã§ãã¯ã¢ã¦ãããªãããªããã¦ãã ããã
ã§ããã¼ã¸ã§ãã
svn merge http://svn_server/hoge/vendorsrc/cake/1.2.2.8120 http://svn_server/hoge/vendorsrc/cake/1.2.4.8284 src/trunk/htdocs
ãã CakePHP ã®ã½ã¼ã¹ã«æãå ãã¦ããå ´åã¯è¡çªãçºçããå ´åãããã¾ãããæ®éã¯ãããªããã¼ã¸ã§ããã¨æãã¾ãã
åé¡ãªããã°ã³ãããã§ãã
svn commit -m "src/trunk/htdocs é ä¸ã® CakePHP ã 1.2.2.8284 ã«æ´æ°ã" src/trunk/htdocs
ãã®ããã« svn_load_dirs.pl ã使ã£ã¦ /vendorsrc ä¸ã«åãã¼ã¸ã§ã³ã®ãã¡ã¤ã«ãé ç½®ãããã¨ã§ãtrunk ä¸ã® CakePHP ã®æ´æ°ããã¼ã¸ã§è¡ããã¨ãã§ããããã«ãªãã¾ãããã®ãããCakePHP ã®æ¬ä½ã«æãå ããå ´åã§ããç¹ã«æèãããã¨ãªããã¼ã¸ã§ã³ã¢ãããè¡ãããã¨ã«ãªãã¾ãã
ãããªããã§ç§ã¯ CakePHP ã«å«ã¾ãã¦ãã app ãã£ã¬ã¯ããªããã®ã¾ã¾ä½¿ã£ã¦ï¼å¿ è¦ã«å¿ã㦠cake é ä¸ã«ãæãå ¥ãã¦éçºãããã¨ãå¤ãã§ããè¤æ°ã®ã¢ããªã±ã¼ã·ã§ã³ã管çããå ´åã¯å¥ã®æ段ãèããã»ããããã®ããããã¾ãããã©ã
CakePHP 以å¤ã®ãã¡ã¤ã«
ä¸è¨ã¯ CakePHP ã®ä¾ã§èª¬æãã¾ããããå®éã¯ãã以å¤ã®ã©ã¤ãã©ãªã®ã»ããå¤ãã§ããã¡ãã£ã¨åã®ããã¸ã§ã¯ãã®ä¾ã ã¨ãããªæãã§ããï¼å®éã¯ãã以å¤ã®ãã£ã¬ã¯ããªãããã¾ãããçç¥ãã¦ãã¾ããï¼
/ ââsrc â ââbranches â ââtags â ââtrunk â ââhtdocs â ââapp â ââcake â ââvendors ââvendorsrc ââcake â ââ1.2.1.8004 â ââ1.2.2.8120 â ââcurrent ââcakephp-db-migrations â ââ2009-02-23 â ââcurrent ââpear â ââMDB2 â â ââ2.5.0b2 â â ââcurrent â ââMDB2_Driver_pgsql â â ââ1.5.0b2 â â ââcurrent â ââPEAR â â ââ1.7.2 â â ââcurrent â ââPHP_CodeSniffer â ââ1.1.0 â ââ1.1.0RC2 â ââcurrent ââprototype â ââ1.6.0.3 â ââcurrent ââselenium â ââcore â â ââ1.0-beta-2 â â ââcurrent â ââremote-control â ââ1.0-beta-2 â ââcurrent ââsimpletest ââ1.0.1 ââcurrent
ãããã£ã諸ã ã®ã©ã¤ãã©ãªã¯ /src/trunk/htdocs ã§ã¯ãªã /src/trunk/htdocs/vendors ã«åãè¾¼ãã ããSelenium Core ã ã£ãã /src/trunk/htdocs/app/webroot/selenium ã«åãè¾¼ãã ãè²ã ã§ãããã¾ãæé ã¯ä¸è¨ã®ã¨ããã§ãã
ãªãã¼ã ãçºçããã±ã¼ã¹
ãsvn_load_dirs.pl ã使ãã°ãªãã¼ã ã管çã§ãããã¨è¨ãã¤ã¤ãä¸è¨ã§ã¯ãã®ãããªã±ã¼ã¹ããªãã£ãã®ã§å¥ã®ä¾ã§èª¬æãã¾ãã
åé ãã¡ã¤ã«ã®ç®¡ç
/vendorsrc ã®éç¨ã«æ £ãã¦ããã¨ãã½ã¼ã¹ã³ã¼ã以å¤ã®å¤é¨ãªã½ã¼ã¹ã«ã¤ãã¦ä¼¼ããããªç®¡çãããããªã£ã¦ããããã¾ãããã¨ãã°å¥ä¼ç¤¾ã«ãã¶ã¤ã³ãä¾é ¼ãã¦ãã¦ãå®æçã§ã¡ã¼ã«ã§åãåããããªå ´åã«ãä¸è¨ã®æ¹æ³ã¯æå¹ã§ãã
ãã®ãããªãã¡ã¤ã«ã«ã¤ãã¦ã trunk/branches/tags ã¨ã©ã¤ããµã¤ã¯ã«ãç°ãªãï¼ãã¼ã¸ãå¿ è¦ã«ãªããã®ã§ãã®ã§ã/receivedï¼åé ãã¡ã¤ã«ï¼ã®ãããªãã£ã¬ã¯ããªãä½æããããã§ç®¡çããããã«ãã¦ãã¾ããä»åã¯ãã¶ã¤ã³é¢é£ã®ãã¡ã¤ã«ãªã®ã§ /received/design ã®ãããªå½¢ã§ããã
svn_load_dirs.pl ã«ãããªãã¼ã
ãã¦ãsvn_load_dirs.pl ã§ææ°ã®ãã¶ã¤ã³ãåãè¾¼ãã¨ããããã
>perl D:\svn_load_dirs\svn_load_dirs.pl -t 2008-10-30 http://svn_server/hoge/received/design/ current design/2008-10-30
ããç¹å®ã®ãã¡ã¤ã«ããªããªãã代ããã«æ°è¦ãã¡ã¤ã«ã追å ããã¦ããå ´åãsvn_load_dirs.pl.in ã¯ããããªãã¼ã ããããã®ãã©ããã®ç¢ºèªãè¡ãã¾ãã
The following table lists files and directories that exist in either the Subversion repository or the directory to be imported but not both. You now have the opportunity to match them up as renames instead of deletes and adds. This is a Good Thing as it'll make the repository take less space. The left column lists files and directories that exist in the Subversion repository and do not exist in the directory being imported. The right column lists files and directories that exist in the directory being imported. Match up a deleted item from the left column with an added item from the right column. Note the line numbers on the left which you type into this script to have a rename performed. Deleted Added 0 login.html_ common/images/arrow_process.gif 1 ___________ common/images/arrow_top.gif (snip) 17 ___________ c001.html 18 ___________ c099.html (snip) 36 ___________ common/images/title_top.gif 37 ___________ common/images/title_top_small.gif Enter two indexes for each column to rename, (R)elist, or (F)inish:
ãã®ã±ã¼ã¹ã§ã¯ãlogin.html ã c001.html ã«ãªãã¼ã ããã¦ãã¾ãï¼ããã¯å 容ããå¤æãã¦ãã ããï¼ã®ã§ã0 17 ã®ããã«å ¥åãã¾ãããã㨠svn rename login.html c001.html ãå®è¡ãããå¾ã§ãã¡ã¤ã«ã®æ´æ°ãè¡ããã¾ãã®ã§ãå¤æ´ãã¡ããã¨ãã¬ã¼ã¹ã§ããã¨ããããã§ãã
vendorsrc ã®ã¨ãã¨åãããã«ãããã trunk é ä¸ã® app/views ãã£ã¬ã¯ããªã«ãã¼ã¸ãã¦ä½¿ã£ãããã¾ãã
SVN 以å¤ã®å ´åã¯ã»ã»ã»
使ã£ããã¨ãªããã§ããã©ãvcs-load-dirs ã¨ããã®ã使ãã° Mercurial ã Git ãã®ä»ããããã§ãåãå¦çãã§ãããããã§ãã
ã§ã Mercurial ã«ã¯ hg addremove -s ãããããGit ã¯ãã¡ã¤ã«ã®ãªãã¼ã ã¯ãã¬ã¼ã¹ããªãè¨è¨ã®ã¯ãã ããæ¬å½ã«æå³ãããã®ãã¤ãã¤ãããã£ã¦ã¾ããã詳ããæ¹ã¯è§£èª¬ãã¦ããã ããã¨ã