ã¡ãã£ã¨ããçç±ã§ãTortoiseHGã使ã£ã¦ã¿ããã¨æãã¾ããã
ãããã¡ã¤ã³ãªãã¸ããªãæå
ã«ç¡ãç¶æ
ï¼æå
ã«é·æéæ®ãã¤ãããç¡ãã³ã¼ãã ã£ãã®ã§ã
(å®éãæå
ã®ç°å¢ã§ã¯Subversionããã¼ã¸ã§ã³ç®¡çã«ä½¿ã£ã¦ãã¾ã)
ã³ãã³ãã©ã¤ã³çã®Mercurialã使ããªãã®ã¯ãåã«ä¸ç²¾ãªããã§ãã
ãã¿ã¾ãããã»ããã£ããªã³ãã³ãä½ç³»ãè¦ããããªããã§ãã
å¾ãTortoiseSVNã§Commitæãã追å ãã¹ããããªãï¼ããã¡ã¤ã«ãåæï¼è¿½å ãã¦ãããæ©è½(æ¯æ¥çºãã¦ããã¨ã¯ã¹ããã¼ã©ä¸ã§ã赤ã注æãã¦ãããã)ããã³ãã³ãã©ã¤ã³ä¸ã§æ軽ã«å®ç¾ã§ããææ³ãããç¥ããªãã£ã¦ã®ãããã¾ããã³ãã³ããããããæã¡è¾¼ãã®ãé¢åã ããªãã
ã§ã¯ãã¤ã³ã¹ãã¼ã«ããã
ã¤ã³ã¹ãã¼ã«
TortoiseHGã®ã¤ã³ã¹ãã¼ã«ã¨æåã®ã¹ã¿ã¼ãã«ã¤ãã¦ã¯ã以ä¸ã®è¨äºãç»é¢ä»ãã§åèã«ãªãã¾ããã
- .NETããã°ã©ãã³ã°ææ¦è¨ Mercurialã®å°å
¥
http://hiragino.blog74.fc2.com/blog-entry-31.html
èªåãã¤ã³ã¹ãã¼ã«ããæç¹ã§ã¯ã'TortoiseHg-0.4rc1.exe
'ã§ããã
使ãåæã¯ãããªã«æªããªãã§ãããUIã®å®æ度ã¯TortoiseSVNã«æ¯ã¹ãã¨ãããã¨ãã¨ããæãã§ãã
ã¾ããéçºãã ãããªã«çµã£ã¦ãªãã®ã§ä»æ¹ãªãã§ãããã
ã¨ããããçæéã§å®ç¨ã«ãªãæ°´æºã«ã¾ã¨ãæãã¦ããç¹ã«æ³¨ç®ãã¹ããã¨æãã¾ãã
TortoiseHGã®ã¤ã³ã¹ãã¼ã«ãã©ã«ãã«è»¢ãã£ã¦ãã大éã®'*.pyd'ãã¡ã¤ã«ãããã©ããPythonã§éçºãã¦py2exeã§EXEåãã¦ããããããªããï¼ã¨æããã§ãããã©ãã§ããããï¼
以éã¯ãå®éã«ä½¿ã£ã¦ã¿ãéã«ãè©°ã¾ã£ãç¹ã¨è§£æ±ºæ¹æ³ã«ã¤ãã¦ãå¹¾ã¤ãåæãã¦ã¿ã¾ãã
ç¡è¦(ignore)ãã¡ã¤ã«ï¼ãã©ã«ãã®æå®æ¹æ³
TortoiseSVNã ã¨ãå³ã¯ãªãã¯ã¡ãã¥ã¼âTortoiseSVNâAdd to ignore list ã§ãç°¡åã«ãã¡ã¤ã«ï¼ãã©ã«ãããã¼ã¸ã§ã³ç®¡ç対象ã«åãäºãåºæ¥ã¾ãã
TortoiseHGã§ã¯ãã¡ãã¥ã¼ãçºããéãã§ã¯ãããããããã®ãè¦ã¤ããã¾ããã§ããã
代ããã«ãè¨å®ãã¡ã¤ã«ã§æå®ããããã§ãã
è¨å®æ¹æ³ã«ã¤ãã¦ã¯ã以ä¸ã®ãç¡è¦ãã¡ã¤ã«ã®è¨å®ãã¨ããæã®èª¬æãå½¹ã«ç«ã¡ã¾ãã
- Mercurialã§ãã¼ã¸ã§ã³ç®¡ç
http://www.02.246.ne.jp/~torutk/mercurial/intro.html
ããã¹ãã¨ãã£ã¿ã®è¨å®
å³ã¯ãªãã¯ã¡ãã¥ã¼ãããView Changelogããã¦é©å½ãªãã¡ã¤ã«ããView at revisionãããã¨ãã¼ãããã(notepad)ãèµ·åãã¾ãã
ããã ã¨ãEUCãªã©ã§è¨è¿°ããæååãæååãããã®ã§ãé©å½ãªããã¹ãã¨ãã£ã¿ã«å¤æ´ãã¾ãã
ããã«ã¯ãXPã®å ´å'C:\Documents and Settings\ã¦ã¼ã¶å\mercurial.ini'ãéãã¦ã以ä¸ã®é ç®ã追å ãã¾ãã
[ui] editor = C:\tool\sakura_editor\sakura.exe
æ¯è¼(diff)ãã¼ã«ã®è¨å®
å³ã¯ãªãã¯ã¡ãã¥ã¼ããæå®ãããã¡ã¤ã«ããVisual Diffãããã¨é常ã§ã¯ãTortoiseHGå
èµã®diffãã¼ã«(kdiffã¨ããããã)ãèµ·åãã¾ãã
ããã¯ãUTF-8ãShift-JISã§è¨è¿°ããæ¥æ¬èªãå¤ãªå
·åã«è¡¨ç¤ºããã¦ä½¿ããªãã®ã§ãé©å½ãªãã¼ã«ã«å¤æ´ãã¾ãã
è¨å®æ¹æ³ã¯ä»¥ä¸ã®éãã§ãã
1.ã¨ã¯ã¹ããã¼ã©ä¸ã§å³ã¯ãªãã¯âTortoiseHGâSettingsâGlobal ã¨ããã
ããã§ã'C:\Documents and Settings\ã¦ã¼ã¶å\mercurial.ini'ãåºæ¥ãããã§ãã
2.mercurial.iniãéãã以ä¸ã追å ãã¾ãã
[extdiff] cmd.vdiff = hgmerge
3.TortoiseHGã®ã¤ã³ã¹ãã¼ã«ãã©ã«ãã«ãhgmerge.cmdãä½æãã¾ãã
ä½æããããMergeProgram - Mercurialã®Windowsè¨è¿°ä¾ãåèã«ãã¦ãhgmerge.cmdã«ã³ã¼ããè²¼ãä»ãã¾ãã
以ä¸ã®URLã®äºä¾ã«ã¯ãWinMergeãTortoiseMergeãªã©èåãªdiffãã¼ã«ã使ãä¾ãè¨è¼ããã¦ããã®ã§ãé常ã«åèã«ãªãã¾ãã
ããå¤ã£ã¦ãªãç¹(æ¥æ¬èªã®è©±)
æ¥æ¬èªç°å¢ã§æ±ãç¹ã«ã¤ãã¦ã¯ãä»ä¸ããå¤ã£ã¦ãã¾ããã
âãã¡ãã®è©±ã§ã¯ãæ¥æ¬èªç°å¢ã§æ±ãå ´åã«ã¤ãã¦è§£èª¬ããã ãã¦ãããã§ãããèªåã®å°å ¥ãããã¼ã¸ã§ã³ã§ã¯ãããç¨åº¦è§£æ±ºããã¦ããã®ã
- æ¥æ¬èªå«ãã ãã¼ã¿ã¯ãã¡ããã¨æ ¼ç´ããã¦ããæã
- æ¥æ¬èªãã¡ã¤ã«ãããªã¹ããã¤ã¢ãã°ã§ã¯åãããã©ãã¡ããã¨æ ¼ç´ããã¦ãã模æ§
ã ã£ããã§ããã
è¨å®ãã¡ã¤ã«(mercurial.ini)ã®è¨å®ä¾ã¨ãã¦ããè¨è¼ããã¦ããã以ä¸ã®è¨å®ã£ã¦å¿ è¦ãªã®ãä¸è¦ãªã®ããä»ä¸å¤ã£ã¦ãã¾ããã
[extensions] hgext.win32text= hgext.win32mbcs= [encode] ** = cleverencode: [decode] ** = cleverdecode:
[encode]ã¨[decode]ã»ã¯ã·ã§ã³ã®ããã®è¨å®ã¯ä»¥ä¸ã®èª¬æã«ããã¨ãCR ââCR+LF ã®èªåå¤æã¨ãã¦åå¨ãã¦ããæããªã®ã§ãæ£ç´è¨å®ããªãæ¹ãè¯ãã®ããªï¼ã¨æã£ã¦ãã¾ããVSSããSubversionã«ç§»è¡ããçç±ã®ä¸ã¤ã¯ããåæã«å¤æãããªããã ã£ãã®ã§ã(ä¸å¿è£è¶³ãã¾ãã¨ãVSSã¯è¨å®ããã°åæãªå¤æã¯ãã¾ããããã ããã©ã«ããããã¹ããã¡ã¤ã«ã¯å¤æ対象ã«ãªãã ãã§ã)
- è¨å®ãã¡ã¤ã«è¨è¿°
http://www.lares.dti.ne.jp/~foozy/fujiguruma/scm/mercurial-config.html
'hgext.win32mbcs'ãã¼ã«ã¤ãã¦ã¯ã以åã®ãã¼ã¸ã§ã³ã§ã¯è¨å®ããªãã¨ãæ¥æ¬èªãæ£å¸¸ã«æ±ããªãã±ã¼ã¹ããã£ããããªãã§ãããã¡ããã¨æ±ãã¾ããã
æå¾ã«(ãªã)
ã¾ã ãã£ã¦ãã¾ã£ãã3æéâ¦ãorz