ã¾ãmod_wsgiå ¥ã㦠LoadModule wsgi_module modules/mod_wsgi.soã¿ããã®ãæ¸ãã mercurial.confã¨ãããååã§apacheç¨ã®è¨å®(ã¨ããããBasicèªè¨¼ã ã) Alias /hg /var/www/cgi-hg <Directory "/var/www/cgi-hg"> AuthType Basic AuthName "hg repo" AuthUserFile /ht/passwd/file Require valid-user DirectoryIndex index.cgi AddHandler cgi-script .cgi Options ExecCGI </Directory>ä¸ã®å ´åãªã/var/www/cgi-hg/ä¸ã«index.cgiä½ã£ã¦ä¸è¨ãå ¥å #!/usr/bin/env python from
â» ä¸é¨ã®ç»é¢ã¯å ¬å¼ãµã¤ãã®ãã® åæ£åãªãã¸ããªã¯è¤æ°äººã§ã®éçºã¯ãã¡ãããå°äººæ°ï¼å人ãå«ãï¼ã§ã®å©ç¨ã«ã便å©ãªãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã ãããã«ã¯ãããããããããã¯ã¢ãããç°¡åããã¡ã¤ã«ãµã¼ãã使ã£ã¦ç®¡çããã¨ãã£ããã¨ãã§ããã ãããªåæ£åãªãã¸ããªãµã¼ãã¹ã¨ãã¦ã¯GitHubãæåã ããPythonã§ä½ããã¦ããMercurialåãã«ãFreeHgãåå¨ããããããã·ã¹ãã èªä½ããªã¼ãã³ã½ã¼ã¹ã ã ä»åç´¹ä»ããããªã¼ã¦ã§ã¢ã¯FreeHgãããªã¼ã§ä½¿ããMercurialãµã¼ãã¹ã ãã½ã¼ã¹ã³ã¼ãã¯é示ããã¦ãããã©ã¤ã»ã³ã¹ã¯æè¨ããã¦ããªãã£ãã®ã§ã注æããã ãããããªããFreeHgã¯FreeHgä¸ã§ãã¹ãã£ã³ã°ããã¦ãããFreeHgã«ã¯ãªã¼ãã³ã½ã¼ã¹ã©ã¤ã»ã³ã¹ã®ãã®ã®ã¿ç»é²ã§ããã¨ããã®ã§ä½ããã®ãªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¨ã¯æãããã FreeHgã¯Djangoã使ã£
Mercurialãã èªåç¨ã¡ã¢ãcloneãããªãã¸ããªèªèº«ããã©ã³ããã¨ãããããã㯠ã¡ãã£ã¨æ²¹æããã¨ãã£ã¬ã¯ããªãæ£ä¹±ãã¦åæ¾ä»ããªããªãã®ã§ãã ãã£ã¦ ã¨ãã«ããµã¼ãä¸ã«ãªãã¸ããª1æ¬ã1åã®ä½æ¥ãã£ã¬ã¯ããªã§ è«ççãªãã©ã³ããåãæ¹æ³ã hg clone ssh://server/repos/project workingcopy cd workingcopy vi file hg ci -m hogehoge file : : (ããããä½æ¥ãã¦å ¬éç1.0ã) hg tag 1.0-release hg push (æ°ãããã©ã³ããåã) hg branch branch-for-1.1 hg hg ci -m "New branch branch-for-1.1 created" (ããããä½æ¥ãã¦ã¯ã³ããããããè¿ã) hg ci -m blah..blah..b
RabbitMQ ã Mercurial ã使ç¨ãã¦ãã¦ã ãã®ä½¿ãæ¹ãå人çã«æ°ã«å ¥ã£ã¦ããã®ã§ãã¡ã¢ãã¦ããã¾ãã ã¾ããã°ãåºãããã°ã«çªå·ãä»ãã¦ãã©ã³ããåã£ã¦ãã¾ãã $ hg branch bug00001 ç©æ¥µçã« branch ã¯åããããã¦ç©æ¥µçã«ä¿®æ£ãã¦ãã¼ã¸ããã ãã¼ã¸ãçµãã£ã branch ã¯èªåçã« inactive ã«ãªã£ã¦ã hg heads ããéã«è¡¨ç¤ºãããªããªãã¾ãã RabbitMQ ãµã³ãã« $ hg branches default 793:deb1ba59c765 bug20149 784:e74b10887829 bug20173 783:e30e539b51cd bug19213 676:e4de2be7be0d bug19662 592:7af938a5589e junk 415:873605c25f15 bug19490 243:a
åæ£ãã¼ã¸ã§ã³ç®¡çGit/Mercurial/Bazaarå¾¹åºæ¯è¼ï¼ã¦ã«ã¤ããã¼ã«ã¤ãã«ã¤ããç°å¢ï¼ï¼3ï¼ï¼1/5 ãã¼ã¸ï¼ Subversionã¨ã¯ä¸å³éããåæ£ãã¼ã¸ã§ã³ç®¡çãã¨ã¯ï¼ æè¿ãLinuxãã¯ãããRuby on RailsãMySQLãOpenSolarisãªã©ã®ãªã¼ãã³ã½ã¼ã¹ãããã¯ãã次ã ã¨åæ£ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ãå°å ¥ãå§ãããGitããMercurialããBazaarãã¨ãã£ããåæ£ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã注ç®ãæµ´ã³ã¦ãã¾ãã æ¬ç¨¿ã§ã¯ããã¼ã¸ã§ã³ç®¡çãã¼ã«ã®ããã¡ã¯ãã¹ã¿ã³ãã¼ãã§ããSubversionï¼ä»¥ä¸ãSVNï¼ã¨åæ£ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ãæ¯è¼ããªãããã¡ã¸ã£ã¼ãªåæ£ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã§ããGitãMercurialãBazaarã«ã¤ãã¦ç´¹ä»ãã¦ããã¾ãã éä¸åã¨åæ£å æåã«ãéä¸ç®¡çæ¹å¼ï¼ã¾ãã¯ãéä¸åï¼ã®ãã¼ã¸ã§ã³ç®¡çã·ã¹ãã ã¨åæ£ç®¡ç
å®å®çã«ã¯ã¾ã ç¡ãã®ã§ãããMercurialã®éçºçã«ã¯ã°ã©ã表示ãã¤ãã¦ã¾ãã ããããããè¦ãããã¦ã«ãã³ããã§ãï¼ ã©ãã§ãªãã¸ããªãåå²ãã¦ãã¼ã¸ãããããããã«ãããã¾ãã ã°ã©ãã¯javascriptã®canvasã§æç»ãã¦ããã¿ããã§ãã
èªåã®ä»äºã§ã¯ãmercurialãåå¹´ã»ã©åãã使ã£ã¦ãã¦ãæè¿ãã®éç¨ããªããã§ãã¾ããã ã¾ã ã¾ã æªçãªã®ãããããªãã®ã§ããããã®éç¨æ¹æ³ãç´¹ä»ãã¾ãã èªåã®ãã¼ã ã§ã¯ãdjangoã使ã£ã¦ç¤¾å åãã®webã¢ããªãéçºãã¦ãã¾ãã 以ä¸ã®ãããªç°å¢ã§ããï¼ã¯ãªãã¯ã§æ¡å¤§ãã¾ããï¼ ç¤¾å åãã®webã¢ããªãªã®ã§ãéçºãã·ã³ã¨ç¤¾å å ¬éãã·ã³ãåå± ãã¦ããã®ãã¡ãã£ã¨ã¢ã¬ãªã®ã§ããã å³ã®ããã«ï¼äººã®éçºè ã§ãã£ããããã«æ¥ã ã³ã¼ããæ¸ãã¦ãã¾ãã ï¼ã¡ãªã¿ã«éçºè Aã¨ãªã£ã¦ããã®ãèªåï¼ ãã®ä½å¶ã®ãã¤ã³ãã¯éçºãã¹ã¿ã¼ãç½®ããåèªããã«èªåã®ææãpullããããã¨ã§ãã ããã«ãã£ã¦ãéçºè ãn人ã«ãªã£ã¦ãpull/pushã®ããã¨ãã®ç¢å°ãnæ¬ã§åã¾ãã ãããããã¹ã¿ã¼ãç½®ããªãã¨ãåèªãåèªå士ã§pull/pushãåããã¨ã«ãªãããã®ç¢å°ã®æ°ãççºçã«å¢ãã¦å°ãã¾ãã
æ¬ãã¼ã¸ã§ã¯ã Emacs ç¨ã® Mercurial é£æºããã³ãã¨ã³ãã¨ãã¦æä¾ããã hg ã¢ã¼ã (mercurial.el)ããã³ mq ã¢ã¼ãï¼mq.elï¼ ã«é¢ããæ å ±ãã¾ã¨ãã¦ã¿ã¾ããã åè: æ¬ãã¼ã¸ã«è¨è¼ããã¦ããã³ã¼ãã¯ææµã«ãããã®ã§ãã®ã§ã Emacs lisp çéã«ããããããä¸è¬çãªå®è£ æ¹æ³ã«é¢ãã¦ã ãåç¥ã®æ¹ã¯å¾¡æé ããã¨å¹¸ãã§ãã ãªããhg ã¢ã¼ãã§ã¯ Emacs 21.x 以éã§æ°è¨ãããé¢æ°ãå©ç¨ããã¦ããããã å®éã«å©ç¨ããç°å¢ã§ emacs-major-version å¤æ°å¤ã確èªããä¸ã§å©ç¨ãã¦ãã ããã ã¾ããç§èªèº«ã¯ 21.4 ç°å¢ã§ã®åä½ç¢ºèªããè¡ã£ã¦ãã¾ããã elisp ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ hg ã¢ã¼ã mq ã¢ã¼ã ãã©ãã«ã·ã¥ã¼ãã£ã³ã° elisp ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ Emacs ç¨ããã³ãã¨ã³ãã® elisp ãã¡ã¤ã«ã¯:
Trac 㯠Python ã§æ¸ãããããªã¼ãã³ã½ã¼ã¹ã®ããã¸ã§ã¯ã管çã»ãã°è¿½è·¡ã·ã¹ãã ã§ãããªã³ã©ã¤ã³ã§ã®ã½ã¼ã¹ã³ã¼ãé²è¦§ã»ç管çã®ã»ããWikiãBTSãªã©ã®å¤æ§ãªæ©è½ãæã£ã¦ãã¾ããä¾ãã°ãå人ã¬ãã¸ããªãå ±æãããï¼è¨ç» (é称 coderepos) ã§ä½¿ããã¦ããã®ã¯ Trac ã§ãã Tracã¯ç管çã«Subversion (ä»¥ä¸ svn) ã使ã£ã¦ãã¾ããsvn ã¯ã¨ã¦ãè¯ãã§ãã¦ããã·ã¹ãã ã§ãããå²ä¸æãç¡æå³ãªããã¸ã§ã¯ãã¨Linusã«DISããã¦ãããã¦ããã¨ã§ãããããã§ã¯åæ£åç管çã·ã¹ãã ã§ãã Mercurial (ä»¥ä¸ hg) ã使ããã¨ã«ãã¾ããããTracã¯æ¨æºæ§æã§ã¯åä¸ã®svnã¬ãã¸ããªã«ãã対å¿ãã¦ãã¾ããããhgç¨ã®ãã©ã°ã¤ã³ã¨è¤æ°ã®ã¬ãã¸ããªãåæã«æ±ããããã«æ¡å¼µãããã©ã³ããéçºããã¦ãã¾ãã FastCGIã¯CGIã®æ¡å¼µã§ããããã»ã¹
ç°å¢ ThinkCentreA55 SmallDesktop(確ãã»ã») ubuntu 7.10 python2.5.1 Apache/2.2.4 è¨å®ï¼è¿½è¨åï¼ host kage repo /var/hg/kagerepo trac /var/trac/kagerepo ä½æ¥ãã° sudo aptitude install mercurial atusi@kage:~$ sudo aptitude install mercurial [sudo] password for atusi: ããã±ã¼ã¸ãªã¹ããèªã¿è¾¼ãã§ãã¾ã... å®äº ä¾åé¢ä¿ããªã¼ãä½æãã¦ãã¾ã Reading state information... å®äº æ¡å¼µç¶æ æ å ±ãèªã¿è¾¼ãã§ãã¾ã ããã±ã¼ã¸ã®ç¶æ ãåæåãã¦ãã¾ã... å®äº ã¿ã°ã®ãã¼ã¿ãã¼ã¹ãæ§ç¯ãã¦ãã¾ã... å®äº 以ä¸ã®æ°è¦ããã±ã¼ã¸ãèªåçã«ã¤
Trac ã Mercurial ã§ä½¿ããããã«ãã¦ï¼mod_wsgi ã«ã®ãã¦ã¿ã¾ãããã¨ãã£ã¦ãï¼TracModWSGI â The Trac Project 㨠TracMercurial â The Trac Project ã«æ²¿ã£ããã§ãã¾ããã®ã§ã¤ã³ã¹ã³æ¹æ³ã¨ãã¯ç¥ã ãã£ãããªã®ã§ Trac 0.11b1 ã§ãã£ã¦ã¿ã¾ãããã½ã¼ã¹ãã©ã¦ã¶ãã¡ã¨ãã£ããããªã£ã¦ããã§ããï¼ããã ã¯ã¾ã£ãã¨ããã epel ã¬ãã¸ããªã® Mercurial 㯠0.9.3 ã§ãããï¼ããã§ã¯ãã¾ãåããªãã£ãã㧠0.9.5 ãã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ãã*1 Trac 㨠TracMercurial ãã©ã°ã¤ã³ããã¡ãã¨ã¤ã³ã¹ãã¼ã«ã§ãããï¼ãã¨ãã°ï¼ä¸è¨ã³ã¼ãã /var/www/app/trac.wsgi ã§ä¿åãã¦ï¼ import os import trac.web.main os.e
ãªã¼ãã«ã¸ã¼ãå®é£ã¬ã é£ã¹ç©ã®é¼»å¡©å¡©(æªã ã«éããã®ããª) ãªã¼ãã«ã¸ã¼ãã¨ããã«ã¬ã¼ããåç¥ã ããã é½å ã«ããããªããªã¼å°éã®ã«ã¬ã¼å±ã§ã ãã±å¼ãªã©ã§å¤§äººæ°ã®æ¬æ ¼æ¬§é¢¨ã«ã¬ã¼ã楽ãããããã ãããªã ãããªããªãã¶ã¤ã¤ã¼ é½å ã®å¥´ãã¯ãããªè¯ãã¢ã³é£ã£ã¦ãã®ã 許ããããâ¦â¦â¦
éè¦: Mercurial ã® 1.x â 2.0 ã§ã¯ã ã³ã³ã»ããï¼æä½æ§ï¼äºææ§çã«ããã大ããªæ¹å¤ã¯ããã¾ããã ããã¾ã§é常ã®å®ä¾ã¢ãããã¼ãã«éãã¾ããã®ã§ã å¾æ¥ã®çãå ã«æ¸ããã¦ããæ å ±ã®å¤ãã¯ããã®ã¾ã¾é©ç¨å¯è½ã§ãã ã¯ããã« ãã¼ã PC ã§ã®ç§»åä¸ä½æ¥ãå¤ã㦠ããªãã©ã¤ã³ã§ã³ãããï¼ãã©ã³ãä½æï¼å±¥æ´åç §ï¼å·®ååç §ã§ããªãã ãã¨ã«ä¸ä¾¿ãæãã¦ãããã ãã·ã¹ãã æ§æä¾ã ã«ç¤ºããããªæ§æ管çã®ä»çµã¿ãå¿ è¦ã¨ããçµé¨ãããå ´åã åæ£ãªãã¸ããªå½¢å¼ãç¨ãã Mercurial ã¯ã 試ãã¦ã¿ã価å¤ã®ããã½ããã¦ã§ã¢æ§æ管ç ï¼SCM: Software Configuration Managementï¼ ãã¼ã«ã¨è¨ãã¾ãã ãããã CVS ãªã©ã常ç¨ã㦠SCM ãã¼ã«ã®åçï¼æ¦å¿µãç解ãã¦ãã人ã§ãã æå¤ã«ãåæ£ãªãã¸ããªãã¨ããèãæ¹ããã³ã¨ããªãå ´åãæã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}