2012-11-18 73 views

回答

0

Mercurial總是使用簽出的.hgignore文件。因此從技術上講,你可以有不同的分支不同.hgignore文件,但是當你使用這個方案,你需要照顧他們,當你這個分支之間的合併留下不同。

當你只有一個系統,其中附加的忽略模式應該適用,也可以通過ui.ignore設置指定範圍內.hg/hgrc額外igore文件。

$ cat >> .hg/hgrc << EOF 
[ui] 
ignore=.hg/production_ignore 
EOF 
$ cat > .hg/production_ignore << EOF 
# example ignore file, uses the same syntax as .hgignore 
syntax: glob 
*.swp 
*.~ 
EOF 
+0

謝謝!我會很快嘗試 – Industrial