Wednesday, May 30, 2007

Mercurial的權限問題

老實講這不算問題,
對於我用Mercurial目前幾乎都是在單人的情況下
但是其實要變成多人很簡單
可以靠 SSH / HTTP / File
當然核心是File ,
設為是同一個群組,File你必須使用chmod -R g+ws .hg
將.hg 裡面的data改變為群組可寫

還有一個很重要的觀念
基本上mercurial以pull為主
push基本上為centralize的觀念

mercurial wiki裡有提到pull為主的好處為
  • it's easier to review the work that's being pulled in before merging
  • it's easier to time or reorder merges for testing or deployment
  • no concept of permissions is needed
  • everything is atomic, no need to wait for locks

細節在下面
http://www.selenic.com/mercurial/wiki/index.cgi/MultipleCommitters?highlight=%28Permission%29

http://kalug.linux.org.tw/~shawn/notes/hg-quickstart/Mercurial.html

1 comment:

Timesking said...

请教一个问题,如何快速删除所有untracked文件?