ãã®è¨äºãã¾ã訳ãã¡ãã£ã¨éãããªï¼ã¨ããç®æãããã®ã§ãããè£ã£ã¦ããã¨ã
ãããã³ã¼ããå®åãµã¼ãã«ä¹ã段éã§ã¯ããã¯ãã¼ã«ã«ãªä½æ¥ç¨ã³ãã¼ã§ã¯ãªããã¨ãã¹ãã¼ããããå®æåã ããããã®åé¡ãèµ·ããã
ãã訳ããã¦ãç®æããããã©ã
When code is rolled to a live server from a repository, it is supposed to be done as an export rather than as a local working copy, and hence this problem.
å®åãµã¼ãã«ã³ã¼ããè¼ããå ´åã¯ããã¼ã«ã«ãªä½æ¥ç¨ã³ãã¼ã¨ãã¦åå¾ããã®ã§ã¯ãªãã¨ã¯ã¹ãã¼ãããã¹ãã ãï¼ã ãä»åã¯ãã¼ã«ã«ãªä½æ¥ç¨ã³ãã¼ãæ¬çªã«ç½®ãã¦ããã®ã§ï¼åé¡ã«ãªã£ã¦ããã
ã¿ãããªæå³åããããªãããªã¼ã¨ãï¼æ¸ãã¦ã¦èªä¿¡ãªããªã£ã¦ããã»ã»ã»ãï¼
ã§ããsvn export ã¯éãã ããã¨æã£ãã®ã§ãã¨ããããæãã¨ãããæ¸ãã¦ã¿ã¾ããé©å®ããã³ããé¡ããã¾ãã
éç¨ä¸è¯ãã¨æãé ã«æ¸ãã¦ã¿ã¾ãã
æ¡1: æ¬çªç°å¢ãã¯ã¼ãã³ã°ã³ãã¼ã«ãã
æ¬çªç°å¢ãããªãã¸ããªã«ç´æ¥ã¢ã¯ã»ã¹ãã¦ãsvn checkout ããéç¨ã§ãããã¡ãã .svn 㯠Apache å´ã®è¨å®ã§ã¢ã¯ã»ã¹ä¸å¯ã«ãã¦ããã¾ãã
ãããããã¨ã®å©ç¹ã¯ãããããããã§ããã»ã»ã»ã
- éç¨è² è·ãä½ã
- ç¡é§ãå°ãªã
- å¿ è¦ãªãã¡ã¤ã«ã ãæ´æ°ããã
- åé¤ãã¡ã¤ã«ãé©åã«ç®¡çã§ãã
- ææ°ã¢ã¸ã¥ã¼ã«ãåå¾ãã¦ä¸æ¸ãããéç¨ã§ã¯ããã¡ãã¡åé¤ããå¿ è¦ããã
ã¨ãã£ãã¨ããã§ãã
ã¤ã³ãã©å¨ãã®äºæ ã§å¥ã®ã½ãªã¥ã¼ã·ã§ã³ãå°å ¥ãã¦ããã±ã¼ã¹ãå¤ãã§ããããã©ãé常æ§æã§ã¯ svn update ã§ã®éç¨ããã¹ãã ã¨æãã¾ããã
ãã®éç¨ãè¡ãå ´åã®æ³¨æç¹
svn checkout ããéã«è¡çªãçºçããã¨ãå ã®ãã¡ã¤ã«ããã¼ã¸ããããã®ã«ç½®ãæãã£ã¦ãã¾ãã¾ããããè¡çªã®å¯è½æ§ãããï¼ï¼æ¬çªãµã¼ãä¸ã§æ´æ°ãã¦ãããã¡ã¤ã«ãããï¼å ´åã¯ãããããã
svn merge --dry-run -r BASE:HEAD .
ã¨ãã£ã¦ãè¡çªãçºçããªããã¨ã確èªãã¦ãã svn update ããã°ãããããå®å¿ã§ããï¼ã·ãã¢ãªç°å¢ã§ã¯ HEAD ãããªãã¦ãªãã¸ã§ã³åºå®ã«ããã»ããããã§ãããï¼
ãã確å®ã«æ´æ°ããããã«ã¯ãæ¬çªãªãªã¼ã¹ç¨ã®ãã©ã³ããä½ã£ã¦ããã¦ãè¡çªãçºçããªãå½¢ã«ããã»ããããããããã¾ããã
æ¡2: Trac ã§å·®åã¢ã¸ã¥ã¼ã«ãåå¾ãã¦ã¢ãããã¼ããã
ã¨ãããã¨ã§ãæ¬çªãµã¼ãä¸ã§ svn ã使ãã®ããã¹ãã ã¨ã¯æããã§ããããããé£ããç°å¢ã¨ããã®ãããã§ããããæ¬çªç°å¢ãããªãã¸ããªã«ã¢ã¯ã»ã¹ã§ããªãã£ããã.svn ãã¡ã¤ã«ãããã¨å°ãç°å¢ã ã£ããããã®å ´å㯠svn export ãããããã¾ããTrac çã®å©ç¨ãèããã»ããããã¨æãã¾ãã
å ·ä½çã«ã¯ä»¥ä¸ã®ãããªéç¨ã«ãªãã¾ãã
- Trac ã§ãªãªã¼ã¹ç¨ã®ãã±ãããåã£ã¦ãã
- Subversion ã§ãªãªã¼ã¹ç¨ã®ã¿ã°ãåã
- ã¿ã°ã¯å¿ é ã§ã¯ãªãã§ãããä½ã£ã¦ãããã»ãã diff ããéã«ãªãã¸ã§ã³æå®ãè¦ããªãã®ã§æ¥½ã§ãã
- ãã¨ãã°ãããªæãã§ãã
- 2009-09-17 ãªãªã¼ã¹ã¶ã: /tags/20090917ï¼ååãªãªã¼ã¹ãããã®ï¼
- 2009-09-25 ãªãªã¼ã¹ã¶ã: /tags/20090925ï¼ä»åãªãªã¼ã¹ããããã®ï¼
- ä¸è¨ã®ãã±ããã« diff ã®ãªã³ã¯ãè²¼ã
- TracWiki è¨æ³ãªããdiff:tags/20090917//tags/20090925ã
- URL ã§ããã¨ãhttp://ï¼Tracã®ãã¹ï¼/changeset?new_path=tags/20090925&old_path=tags/20090917ãã¿ãããª
- ä¸è¨ã® diff ãã¼ã¸ã®æä¸é¨ãZip ã¢ã¼ã«ã¤ãããã¯ãªãã¯
- ãã® .zip ã«ã¯ãå¤æ´ããããã¡ã¤ã«ã ããå«ã¾ãã¦ãã¾ã
- tags ã®ä½ç½®ãå¤ãã¦ããå ´åã¯ãtrac.ini ã® downloadable_paths ãé©åã«ç·¨éãã¦ããã¾ããã
- ãªãªã¼ã¹
- .zip ããµã¼ãã«ã¢ãããã¼ããã¦è§£åãããªãã解åãã¦ã¢ãããã¼ããããªã
- ãã±ãããã¯ãã¼ãº
æ¬çªæ©ã¸ã®ãªãªã¼ã¹ãããã»ã©é »ç¹ã§ãªãç°å¢ã«éãããããããã¾ãããããã®éç¨ã§ãã¾ããã£ã¦ãããããªæ°ããã¾ãã
æ¡1 ã¨éã£ã¦
- ä¸è¦ãã¡ã¤ã«ã®åé¤
- æ°è¦ãã¡ã¤ã«ã®ãã¼ããã·ã§ã³å¤æ´
çã¯å¿ è¦ã«ãªãã®ã§ãæ°ãã¤ããã ããã
ã¾ãããã®æ¹æ³ã§ã¯ãæ¬çªä¸ã§è¨å®ãã¡ã¤ã«ãæ¸ãæãã¦ãããã¨ãã£ãéç¨ã¯è¡ãã¾ããã
æ¡3: svn export
å ¨ãã¡ã¤ã«ãåå¾ããå¿ è¦ãããã®ã§ã大è¦æ¨¡ãµã¤ãã§ã¯ãããããªãã§ããã»ã»ã»å ¨ãã¡ã¤ã«ã¯ãªã¼ã³ãªç¶æ ã§æ¬²ããå ´åãããã¨æãã¾ãã®ã§ããã®å ´å㯠svn export ã§ãããã¨æãã¾ãã
svn update 㧠.svn ãé¤å¤æå®ãã¦ã¢ãããã¼ããã¿ãããªãã¨ããã£ã¦ãããã¨æãã¾ããã©ãã±ã¼ã¹ãã¤ã±ã¼ã¹ã§ããããã
ã¾ã¨ã
ä»åã®åé¡ã¯ããã¾ã§ããæ¬çªã« .svn ãç½®ãããéç¨ã ã£ãã®ã«ã.svn ãé¤å¤æå®ããã¦ããªãã£ããã¨ããªã®ã§ããsvn update ãããªã㦠svn export ãããã¨ããæè¦ã¯ã¡ãã£ã¨ä¹±æ´ãããæ°ããããã»ãã¥ãªãã£å±ããã¯ãã¾ã«éç¨å¹çã¨ãç¡è¦ããã¢ããã¤ã¹ã¨ããã¡ãããã©ããããå ã«å¤ãªéç¨ã«ã¼ã«ã¨ãã§ãã¡ããã¨è¿·æãªã®ã§ããã¦ã»ãããªã¼ã
ã¤ãã§ã«
ç´°ããçåã¨ãè£è¶³ã¨ãã
ããããã¡ã¤ã«ã®ã¢ã¯ã»ã¹å¶é
Most web servers are configured by default to disallow access to directories that begin with a period (the traditional prefix for a hidden file or folder in UNIX)
Webãµã¼ãã®ããã©ã«ãã®æ§æã§ã¯ãååããããã§å§ã¾ããã£ã¬ã¯ããªï¼UNIXã§ã¯ä¼çµ±çã«é ããã¡ã¤ã«ãé ããã£ã¬ã¯ããªï¼ãã¢ã¯ã»ã¹ä¸å¯ã«ãããã¨ãå¤ãã
ã¨ãããã©ãXAMPP ããã©ã«ãã® httpd.conf ã ã¨
<FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch>
ã¨ãªã£ã¦ãã¦ãããããã¡ã¤ã«ãã¹ã¦ãå¼¾ãå½¢ã«ã¯ãªã£ã¦ãªããã§ããã©ãXAMPP ã ããã§ãããï¼
DirectoryIndexï¼
ã*訳注: ã¾ããâãã£ã¬ã¯ããªãªã¹ãã£ã³ã°ãè¿ããªãâã¨ããæ§æã«ããã®ããµã¤ãã§ããããã
ã¨ãããã©ãDirectoryIndex ã®æå®ã¨ããããã¡ã¤ã«ãæå¦ããè¨å®ã¯å¥ãããªãããªã¨ã
ï¼è¿½è¨ï¼
ma ããã®ã³ã¡ã³ãã«ããããã«ãDirectoryIndex ãããªã㦠Options -Indexes ã®ã»ãã§ããã失礼ãã¾ããã
Subversion 以å¤ã§ã¯ã»ã»ã»
åæ£ãªãã¸ããªã§ããã°æ¬çªæ©ãããªãã¸ããªã«ç´æ¥ã¢ã¯ã»ã¹ã§ããªãå ´åãããã¾ãéç¨ã§ããããã¾ããmercurial ã§ã®éç¨ã§ãããã°ã以ä¸ã®æ¬ã«ç°å¢ã«å¿ãããã¾ãã¾ãªä½¿ãæ¹ãè¼ã£ã¦ãã¾ãã
å ¥éMercurial Linux/Windows対å¿
- ä½è : è¤åå å
- åºç社/ã¡ã¼ã«ã¼: ç§åã·ã¹ãã
- çºå£²æ¥: 2009/01/20
- ã¡ãã£ã¢: åè¡æ¬
- è³¼å ¥: 10人 ã¯ãªãã¯: 220å
- ãã®ååãå«ãããã° (63件) ãè¦ã
ä»äºã§ mercurial 使ã£ããã¨ããªãã®ã§ãæ¬å½ã«ãã¾ãããã®ãã¯ããããªãã®ã§ããã»ã»ã»ã¨ãããããªã¹ã¹ã¡ã§ãã
ï¼2012-04-10 追è¨ï¼use-commit-times=true ã«ã¤ãã¦
ãã³ã¡ã§
seiunsky svn, éç¨, development
èªå® ã§ã¯svn updateã§ãwï¼å®å ¨é¢ï¼ã³ã³ããªã¯ãã§æ»ã¬ï¼ãèããã¨ã¹ãã¼ã¸ã³ã°ã§ svn updateâ æ¬çªã« rsync ã¨ãã§ããããããã¨ãsvn update ãããªããµã¼ãå´ã¯use-commit-times=true ãã¨ããæ¹ãè¯ãã§ããã 2010/02/11
ã¨æ¸ããã¦ããã§ãããå½æ use-commit-times=true ãããã¨ã®éè¦æ§ãããã£ã¦ãªãã£ããã§ãããï¼å¥½ã¿ã®åé¡ã ã¨æã£ã¦ãã»ã»ã»ï¼ãæ¹ãã¦ããã®ãããã®è§£èª¬ã«ãªã³ã¯ãã¦ããã¾ãã
~/.subversion/config ã /etc/subversion/config ã§è¨å®ããæãã¨ã