ãMercurial ã®ä½¿ãæ¹ã®ãã¥ã¼ããªã¢ã«ããä¸èªãã¦ããã°ãæ¥å¸¸ä½æ¥ã«å°ãäºã¯ç¡ãã¨æãã¾ãããããããã¾ã«ã¯ãªãã¸ããªã«ééã£ãã³ãããããã¦ãã¾ããã®ã§ãããæåã¯èª°ã§ãééããã¡ã§ããããã§ééããã¨ãã«æã¤ã¹ãã³ãã³ãã®è¦ãæ¸ãã¨ãã¦ã以ä¸ã®ã³ãã³ãå ¥åä¾ãå ¬éãã¾ãã ã¯ã¼ãã³ã°ããªã¼ã«ã«ã¬ã³ãã»ãã£ã¬ã¯ããªã移åãã¦ããç¶æ ãåæã«ããæä½ä¾ãªã®ã§æ³¨æãã¦ãã ãããã¾ããåã³ãã³ãã®è©³ç´°ãªãªãã·ã§ã³ã¯ hg help [ã³ãã³ã] ãè¦ã¦ç¢ºèªãã¦ãã ããããªããMercurialã¯ãã¼ã¸ã§ã³1.7.3ã§åä½ç¢ºèªãã¦ãã¾ãã ç·¨éãåãæ¶ãããããã§ã³ã¸ã»ããã®ç¶æ ã«æ»ã ã³ããããããç´ããã³ãããã»ã¡ãã»ã¼ã¸ãå¤æ´ãã ãã§ã³ã¸ã»ãããæ¶ã ãã§ã³ã¸ã»ãããæã¡æ¶ã ãã§ã³ã¸ã»ãããå¤æ´ãã è¤æ°ã®ãã§ã³ã¸ã»ãããä¸ã¤ã«ã¾ã¨ãã å±¥æ´ãããã®ã¼ã£ã¦ç¹å®ã®ãã¡ã¤ã«ãåé¤ã
Debian wgetãapt-getãeasy_installãsvnãmercurialã®proxyè¨å®æ¹æ³ proxyãå¿ è¦ãªç°å¢ã§ãã¢ã¸ã¥ã¼ã«ã®ãã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ã è¡ããã¨ããã¨ãè¨å®ãã¡ã¤ã«ã«proxyã®è¨å®ãå¿ è¦ã«ãªãã¾ãã ãããã¾ããä¸ç®æã«è¨å®ããã°OKã§ã¯ãªããããããã®ãã¼ã«ã«ãã è¨å®ãããã¡ã¤ã«ããã¨ãªãã®ã§åä»ã§ãã ãã¤ã調ã¹ã¾ãã£ã¦ããã®ã§ãèªåç¨ã®ã¡ã¢ã¨ãã¦ã¾ã¨ãã¦ããã¾ãã
ãããVPSã¸tracã¨svnãã¤ã³ã¹ãã¼ã« ç°å¢ï¼ /var/www/svn 以ä¸ã«ãªãã¸ããªãä½æ ä¾:/var/www/svn/repo1 /var/www/trac 以ä¸ã«tracããã¸ã§ã¯ãä½æ ä¾ï¼/var/www/svn/pro1 /usr/local/src 以ä¸ã«ãã¦ã³ãã¼ãããã½ãããä¿ç®¡ /var/www/.htpasswd ãã¼ã·ãã¯èªè¨¼ 注æï¼ã//以ä¸ã¯ã³ã¡ã³ã 1.apacheã®ã¤ã³ã¹ãã¼ã«ï¼http://kajuhome.com/apache.shtmlï¼ 2.svnã®ã¤ã³ã¹ãã¼ã«ã¨ãªãã¸ããªä½æï¼ãããåèã«ãã¾ãããhttp://d.hatena.ne.jp/Kshi/20100221/1266770576ï¼ $su - #yum -y install mod_dav_svn #mkdir -p /var/www/svn #svnadmin create
ä»åã¯ãåå¼·ç¨ã«EC2ãåãã¦ãUbuntuã¤ã³ã¹ã¿ã³ã¹ãèµ·åã ããã«Trac + Mercurial ã®é£æºã Apache2ã®mod_pythonä¸ã§ã®ç¨¼åè¨å®ããããããã¾ã§ã æè¿è²ã ã¨å°å ¥ããã®ã§ãåå¿é²ã åååããAssemblaããããã§ããããã©ã°ã¤ã³ãèªç±ã«ã¯å ¥ããããªããã å®å ¨ã«ãã©ã¤ãã¼ããªããã¸ã§ã¯ããä½ãããã£ããããã«Tracãããã¤ã³ã¹ãã¼ã«åºæ¥ã¦ããããã èªåã®ãã·ã³ã«è¼ããããå¤ã«ãµã¼ãåãããã¨æã£ãã®ã§ãEC2ãåãã¦ã¿ãã å°ãé«ãã¤ããã©ãå®å ¨ã«èªç±ã«æ§ç¯ã§ããããè²ã åå¼·ã«ãªãã¾ããã å ã«ä»åã®æµããæ¸ãã¦ããã¾ãã AWSã¢ã«ã¦ã³ãåå¾ã¨ã¤ã³ã¹ã¿ã³ã¹èµ·å å¿ è¦ãªããã±ã¼ã¸ã®æºå Tracã®æ¥æ¬èªçã¤ã³ã¹ãã¼ã« Trac+SVNãé£æº Trac+SVNãApache_mod_pythonã§èµ·å Trac+Mercurial on Apa
ãã®ãã¡ã¤ã³ã¯ ãåå.com ããåå¾ããã¾ããã ãåå.com 㯠GMOã¤ã³ã¿ã¼ãããã°ã«ã¼ã(æ ª) ãéå¶ããå½å ã·ã§ã¢No.1ã®ãã¡ã¤ã³ç»é²ãµã¼ãã¹ã§ãã â»è¡¨ç¤ºä¾¡æ ¼ã¯ãå ¨ã¦ç¨è¾¼ã§ãã â»ãµã¼ãã¹å質ç¶æã®ãããä¸æçã«å¯¾è±¡ã¨ãªãæéã¸ä¸å®å²åã®ããµã¼ãã¹ç¶æ調æ´è²»ããå ç®ããã¦ããã ãã¾ãã
SCM mercurialãBTS trac ã§ã®ãã¼ã«ã«ç°å¢ã®æ§ç¯æé ã§ããapt ã使ãããã¨ãåæã¨ãã¦ãã¾ããä½æ¥ã¯ãUbuntu10.04 ã§è¡ãã¾ãããtrac ã§ã¯ mod_wsgi ã使ãã¾ããhttp://trac.localhost ã§ããã¸ã§ã¯ãä¸è¦§ãhttp://trac.localhost/hg-dwim 㧠hg-dwim ããã¸ã§ã¯ããé²è¦§ã§ããããã«ãã¾ãã å種ã¤ã³ã¹ãã¼ã«/ç¢ºèª python, mod_wsgi, trac, trac-mercurial ãã¤ã³ã¹ãã¼ã«/確èªãã¾ãã # python ãã¤ã³ã¹ãã¼ã«æ¸ã¿ã§ãããã¨ãç¢ºèª $ python -V # libapache2-mod-wsgi ã®ã¤ã³ã¹ãã¼ã« $ sudo apt-get install libapache2-mod-wsgi # mod_wsgi ã®æå¹å $ sudo a2
Tracã§ãmercurialãã©ã°ã¤ã³ãåããäºãåºæ¥ããã©ãæå¤ãªã¨ããã«è½ã¨ãç©´ããã£ããæ¨æºã®hgweb.cgiã¯ããã¹ããªã¼ã®Webç»é¢ã®æä¾ã¨å ±ã«ãªãã¸ããªã¼ã¨ã®ããã¨ãã仲ä»ãã¦ããã¦ãããTracã¨mercurialã®çµã¿åããã®æã«ãã©ããã£ã¦ãªãã¸ããªã«ãªã¼ãããã®ãå¤ããªãã id:pateoæ°ã«ã¢ããã¤ã¹ãããããã«Tracã¨hgwebã®ä¸¡éç¨ããã£ã¦ã¿ãã ããããäº trac.hoge.com/ããã¸ã§ã¯ãå hg.hoge.com/ããã¸ã§ã¯ãå ã§ã¢ã¯ã»ã¹åºæ¥ãããã«ãã hgã³ãã³ãèµ°ãããã¨ãã«ã¯ï¼ã®urlã使ã tracã®ã¤ã³ã¹ãã¼ã«å ã¯ã/var/trac/HogeProject mercurialã®ãªãã¸ããªã¯ã/var/trac/HogeProject tracãapache2ã§å ¬éããçºã«ãmod_wsgiã使ããtracã®ã¤ã³ã¹ãã¼ã«ãã¹ã«ã
ä»å㯠named branch ã«ã¤ãã¦ã§ããå¥ã« Mercurial ãå©ç¨ããããã§å¿ é ã®æ¦å¿µã§ã¯ãªãã®ã§ããï¼ããã¤ã使ã㨠multiple heads ã§ã® changeset é移åã«ç¿çã§ãã¾ãã®ã§ã ã²ã¨ãã¨ã¾ã¨ã Multiple heads ã¯æããªãï¼hg update -C 㧠branch éã®ç§»åãèªç±èªå¨ ãã ãï¼update ããã¾ãã« commit ãã¨ãã¦ã æºå ã¾ãä½æ¥ç¨ã®ã¬ãã¸ããªãä½ãã¾ãã % hg init % touch 1 2 % hg ci -A -m "1, 2 added" adding 1 adding 21 㨠2 ã¨ãããã¡ã¤ã«ã追å ãã¾ãããcommit ã®ãªãã·ã§ã³ -A ã¨ã¯ï¼commit æã«åæã« addremove ãããã¦ãããâ¦â¦ããªãã¡ï¼æª commit ã®ãã¡ã¤ã«ãèªåçã«è¿½å åé¤ãã¦ãããï¼ã¨ãããå½¹ç«
ãã®URLã®ãã¼ã¸ã¯è¡¨ç¤ºãããã¨ãåºæ¥ã¾ããã§ããã IQãµã¼ãã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}