0
汞柱更新當我試圖變化我在哪裏分支,我得到這個錯誤每次:錯誤「取消鏈接目錄不允許」當我在做與cygwin的
# Just check in which branch I am
$ hg branch
django1.6
$ hg update --clean default
abandon: Unlinking directory not permitted: 'D:\Projects\abc\abc'
( abc
是項目名稱,此處簡單替換)。由於它是一個名爲abc
的Django項目,因此我在django1.6
分支中創建了一個子文件夾abc
。此文件夾在默認分支中尚不存在,所以如果我要更改分支,理論上文件夾必須被刪除
當我檢查屬性時,我看到該文件夾處於只讀模式,所以在我的cygwin的chmod
夾,然後再試一次......
$ chmod -R 0777 hstareal/
$ hg update --clean default
abandon: Unlinking directory not permitted: 'D:\Projects\abc\abc'
$ hg update --clean another-already-existing-branch
abandon: Unlinking directory not permitted: 'D:\Projects\abc\abc'
有關信息,我可以創建一個分支,回到django1.6
沒有問題:
$ hg branch test
marked working directory as branch test
(branches are permanent and global, did you want a bookmark?)
$ hg update --clean django1.6
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
有誰看到問題的所在?我敢肯定它與cygwin有關,但我不明白爲什麼。