Mercurialã使ã£ã俺ã ãã¼ã¸ã§ã³ç®¡çãã¦ãã¦ã¾ã¨ã(2009å¹´å¤ç·¨)
è·å ´ã§Mercurialã使ã£ã¦ããæãã«ä¿ºã
ãã¼ã¸ã§ã³ç®¡çã
ãããããã«ãªã£ã¦ããæãããã®ã§ã
ãã¦ãã¦ãã¾ã¨ããã
æ¦ç¥
- ä¸å¤®ãªãã¸ããªã¨åæãã¨ãbranchãç¨æãã
- åæbranchã¯sync_cvsã¨ããããªåå
- defaultããã®ã¾ã¾ä½¿ã£ã¦ãè¯ã
- ãã®branchã§éçºä½æ¥ã¯çµ¶å¯¾ã«ããªã
- å
¨ã½ã¼ã¹ãhgã§ç®¡çããªã
- ä¸å¤®ãªãã¸ããªã§ç®¡çãã¦ããã½ã¼ã¹ã®æ°ãå¤ãå ´åã®è©±
- hgã§ç®¡çãããã¡ã¤ã«æ°ãå¤ãã¨hg updateçãé ããªããéçºã®ã¹ãã¼ãæãè½ã¡ã
- ä¸å¤®ãªãã¸ããªã§ç®¡çãã¦ããã½ã¼ã¹ã®æ°ãå¤ãå ´åã®è©±
- ticketæ¯ã«éçºä½æ¥ç¨branchãä½æãã
- åæbranchããä½æãã
- åæbranchããéærebaseãã
- å¿ ããåæbranchã®ææ°çããrebaseããç¶æ ã§ãã¹ããè¡ãã
- ãã¹ããéã£ããticketå¥branchããåæbranchã«mergeããããã®å¾ãåæbranchã®å
容ã§ä¸å¤®ãªãã¸ããªã«commitããã
- åæbranchã«mergeå¾ãticketå¥branchã¯inactiveãªbranchã«ãªã
- å¿
è¦ã«å¿ãã¦èª¿æ»ç¨branchãä½æãã
- 絶対ã«ã©ã®branchã«ãmergeããªã
- 使ããææã¯ticketå¥branchã«ã¤ã¾ã¿é£ããã
- 使ãçµãã£ããclose
ãã¤ã³ã解説
ticketæ¯ã«éçºä½æ¥ç¨branchãä½æ
ãã®éç¨ã«ãããè¤æ°ticketã®ä½æ¥ã並è¡ãã¦è¡ãã¨ãã«ææãæ··ãããªãã
ä¸å¤®ãªãã¸ããªã«commitããã¨ããæ··ãããªãã
俺ã
管çããããã¡ã¤ã«ãµã¼ãççµç±ã§ãã¼ã å
ã§ãªãã¸ããªãå
±æãã
æã
æã
管çã«ç§»è¡ãã¦ãããã»ã©åé¡ãèµ·ãããªãã
ticketå¥branchãåæbranchããéærebase
hg rebaseã¯ã¡ãã£ã¨è©¦ãã¦ã¿ãæãã§ã¯å¾®å¦ãªã®ã§ä½¿ããªãã
åæbranchããmergeããã
ticketå¥branchã«ã¦ãhg merge åæbranchããªã©ã¨ããã
åæbranchã®headããmergeããã¨ããã
ã¾ãã¯mergeæ¸ã¿ã®ç¶æ
ããä½åº¦ãcommitãã¦ticketå¥branchãã®ã°ããã¨ããã
ãã®æã®ticketå¥branchã®headã¨ã
å対æ¹åã¸ã®mergeãã¤ã¾ãåæbranchã«ã¦ãhg merge ticketå¥branchãã
ãã¦ã§ããheadã¯åä¸ã®å
容ã§ããã
ã¤ã¾ããticketå¥branchã§åããã¦ããæã¯ã¡ããã¨ãã¦ããã
åæbranchã«mergeããããããããªã£ããã¨ãã£ããã¨ã¯èµ·ããããªãã
å ¨ã½ã¼ã¹ãhgã§ç®¡çããªã
ticketå¥branchã§è§¦ããªããã°ãããªãã½ã¼ã¹ãå¢ãããã
åæbranchã§addãã¦ãticketå¥branchãrebaseããã
調æ»ç¨branch
ã©ããã©ãã«ãmergeããªãã®ã§logåºåã ããã
ä½ã ãããèªéããã«ãã³ãããå
¥ãã¦ããã
ãã ããlogåºåçã¨ã試ãå®è£
ã¯å¿
ãå¥ã
ã«commitãã
å¥ã®chnagesetã«ãªãããã«ããã
çç±ã¯æ¬¡ã®ã¤ã¾ã¿é£ããåç
§ã®ãã¨ã
ã¤ã¾ã¿é£ã
ã試ãå®è£
ã®ä¸ã§ä½¿ããããã®ãã¤ã¾ã¿é£ãããã
Mercurialã«ã¯Gitã®ãããªã¤ã¾ã¿é£ãmergeæ©è½ã¯ãªã
ã¼Gitã®ã¤ã¾ã¿é£ãmergeããããã£ãç¨éã«ä½¿ããã®ãã¯ç¥ããªãã¼
ã®ã§ãhg exportã§ã®patchä½æã¨hg importã§ã®patché©ç¨ã§ã¤ã¾ã¿é£ããããã
æ¡ç¨ãããchangesetã®revisionãæå®ãã¦hg exportã³ãã³ããå®è¡ãã
patchããã³ãã³ä½ã£ã¦ããã
TortoiseHGã使ã£ã¦ãããªããchangelogããrevisionãé¸æãã¦ã
å³ã¯ãªãã¯ã¡ãã¥ã¼ããpatchä½æãé¸ã¹ãã®ã§ããã使ãã¨ããã
ticketå¥branchã«updateãã¦ãå
ã»ã©ã®patchãã¡ã¤ã«ãé ç¹°ãã«hg importã§é©ç¨ãã¦ããã
å¤æ´æ¥ã®åå¾ã®å
容ããåããªãè¡çªå·ãããã¦ãã¦ãpatchããã¦ãããã®ã§ã
logåºåçãå
¥ããã³ã¼ãããä½æããpatchã§ãæ¦ãã¡ããã¨ãããã
ã¾ããè¤æ°ã®patchã1changesetã¨ãã¦commitãããå ´åã¯ã
hg -f --no-commit ã®optionãã¤ããã¨ããã