KDiff3å°å ¥ã®è©±
æ¬é¡
Mercurialã§æåmergeãå¿
è¦ãªæã«WinMergeã使ç¨ãã¦ããã®ãKDiff3ã«åãæ¿ããã
Kdiff3
Mercurial.iniã®è¨å®
[merge-tools] ;[merge-tools]ã®ä¸çªä¸ã«âãæ¸ãã¦ããã°OK kdiff3.args=--auto --L1 base --L2 local --L3 other $base $local $other -o $output kdiff3.regkey=Software\KDiff3 kdiff3.regappend=\kdiff3.exe kdiff3.fixeol=True kdiff3.gui=True
WinMergeã§æ»ãã 件
Winç¨ã®ã¤ã³ã¹ãã¼ã©çMercurialã¤ã³ã¹ã³ããæã«æåããå ¥ã£ã¦ãMercurial.ini*1ã¯âã§ã
winmerge.args=/e /u /dl local /dr other /wr $local $other $output winmerge.regkey=Software\Thingamahoochie\WinMerge winmerge.regname=Executable winmerge.checkchanged=True winmerge.gui=True
ããã ã¨3ãã¤ã³è¡¨ç¤ºããããã©ãªãã3way mergeãã§ããªãã£ãã
ã¨ããããmergeæ¸ã¿æ±ããããoutputå´ãå¼ããªãã®ã§ã¾ã£ããmergeãè¡ããã¨ãã§ããªãã£ãã
ã¤ã¢ã³ã«ã¢ããã¤ã¹ãããã£ã¦ã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ãâã®ããã«ããæ3way mergeã¯ã§ããããã«ãªã£ãã
winmerge.args=/e /ub /dl other /dr local $other $output $local
ããå
¨å¤æ´ç®æã«ã¤ãã¦æåmergeããªãã¨ãããªãã£ãã®ã§é ããããããªã£ã¦æ»ãã ã
importããconflictãã¦ãªãJavaã®ã½ã¼ã¹ã®mergeã ã£ãã®ã«ã
ããããã£ããã¨
é対話ã§ã®æåmergeã®æã«èªåmergeå¯è½ãªè¡ã«ã¤ãã¦ã¯mergeãæ¸ã¾ãã¦ã
conflictãçããè¡ã«ã¤ãã¦ã®ã¿âã¿ããã®ãåºã¦ãã¦ããã§ã³ãã§ã³æ¸ãæãã¦ãããããªãã ãã©ã
<<<<<<< ======= >>>>>>>
ãã®ç®æã ã対話çã«mergeã§ããã°è¯ãã£ãã¨ãããã
ãã以å¤ã®ã¨ããã¯å¼ããããªãã£ãã
ã¨ããã®ãbranch1ã®ã¿ã«åå¨ããè¡ãã
branch1ã§è¿½å ããããã®ãªã®ãbranch2ã§åé¤ããããã®ãªã®ãã
ä»ã¾ã§ã®ä½æ¥å
容ãå
¨é¨æãåºããªããè¦ãªãã¨åºå¥ãã¤ããªãã¨ããç¶æ³ã ã£ãã
èªåmergeã«ä»»ãããã®å±éºæ§ãåãããã
å
ã
ããæ
å ±ãæ¬ è½ããç¶æ
ã§æåmergeããã®ã¯ãã以ä¸ã«ãªã¹ãã¼ã ã¨å®æããã
KDiff3ã使ã£ã¦ã¿ãæã
ãããªè¤æ°headãããã¨ããã
@ changeset: 2:a10a3eec7f83 | tag: tip | parent: 0:d94c1c51f348 | user: monjudoh | date: Fri May 01 22:09:17 2009 +0900 | summary: conflict2 | | o changeset: 1:80da309118c7 |/ user: monjudoh | date: Fri May 01 22:07:44 2009 +0900 | summary: conflict1 | o changeset: 0:d94c1c51f348 user: monjudoh date: Fri May 01 22:07:15 2009 +0900 summary: fisrt commit
changeset 0,1,2ã®å
容ã¯ãããã以ä¸ã®ããã«ãªã£ã¦ãã¦ã
èªåmergeã§ããç®æãããããªããã¤æåmergeãå¿
è¦ãªè¡çªããã¦ããã
AAAAAAA BBBBBBB CCCCCCC DDDDDDD EEEEEEE
AAAAAAA conflict1 BBBBBBB CCCCCCC DDDDDDD add EEEEEEE
AAAAAAA conflict2 BBBBBBB DDDDDDD EEEEEEE
KDiff3ã使ããç¶æ
ã§ãã®ãªãã¸ããªã§ã
hg mergeããã¨âã®ãããªWindowã表示ãããã
mergeç¶æ³ã¯ä¸ãã¤ã³ã§ç¢ºèªã§ããã
changeset1ã§è¿½å ãããè¡ãchangeset2ã§åé¤ãããè¡ã®ããã«èªåmergeå¯è½ãªè¡ã«ã¤ãã¦ã¯ã
èªåmergeããä¸ã§ã©ã¡ãç±æ¥ããæ示ããã¦ããã
ãã¼ã¸è¡çªãçºçãã¦ããè¡ã«ã¤ãã¦ã¯ã©ããã¨ããã¨ã
å³ã¯ãªãã¯ããã¨ã以ä¸ã®ããã«ã©ã¡ãã®changesetããæã£ã¦ãããé¸æãããã¨ã«ãªã(è¡çªè¡ä»¥å¤ãé¸æå¯è½)ã
KDiff3ã使ãã°æä½æ¥ã«ãããã¹ã®èªçºãåé¿ãã¤ã¤ã
æé»çãªèªåmergeã«ããæå³ããªãåé¡ã®çºçãé²ããããã¨æãã
*1:[merge-tools]ã«ä¸»è¦merge toolã®è¨å®ãä¸éãæ¸ããã¦ãã