提前抱歉我的英语不好......
我正在尝试在Ubuntu上使用Eclipse克隆一个hg存储库
当我执行“hg clone”命令时,我总是有以下错误消息完全相同:
"Operation not permitted: <workspace_folder>/<project_name>/.hg/requires"
这是/.hg内容:
ls -al .hg/
total 40K
drwxrwxr-x 4 www-data web 4.0K Apr 18 09:33 .
drwxrwxr-x 3 www-data svn 4.0K Mar 5 17:52 ..
-rwxrwxr-x 1 www-data web 57 Mar 5 17:48 00changelog.i
drwxrwxr-x 2 www-data web 4.0K Apr 18 09:33 cache
-rwxrwxr-x 1 www-data web 40 Mar 5 17:51 dirstate
-rwxrwxrwx 1 www-data web 40 Apr 18 21:45 requires
drwxrwxr-x 3 www-data web 4.0K Apr 18 09:33 store
-rw-rw-r-- 1 nico web 0 Apr 18 09:33 undo.bookmarks
-rw-rw-r-- 1 nico web 7 Apr 18 09:33 undo.branch
-rw-rw-r-- 1 nico web 38 Apr 18 09:33 undo.desc
-rw-rw-r-- 1 nico web 40 Apr 18 09:33 undo.dirstate
这是/.hg/requires文件内容:
revlogv1
store
fncache
dotencode
这是hg clone命令的输出:
running ssh nico@www.there.com "hg -R /var/dev/projects/my_hg_project serve --stdio"
sending hello command
sending between command
nico@www.there.com's password:
remote: 145
remote: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024
remote: 1
destination directory: my_hg_project
abandon : Operation not permitted : /media/data/workspaces/my_workspace/my_hg_project/.hg/requires
我尝试了很多东西,比如chmod和chown ......我不是linux专家,所以我搜索了我的错误信息,但结果并不多。 有人对此有所了解吗?
非常感谢您提前
答案 0 :(得分:1)
你认为文件权限是正确的,因为这是根本原因,但我有点困惑。您是否在服务器上显示文件权限,但在工作站上看到该消息?你到底想要克隆到哪里?你是克隆http还是ssh?你在哪个用户运行clone命令?