2

After creating a symlink to a file I checked the file into my repo and it worked fine up to the point when I shared the repo with my teammate who is using Windows (his code goes into branch 'devui', mine is on the default branch).

If I switch from his latest changes (being on branch 'devui') to my default branch using hg upd default I get this message:

abort: could not symlink to '...<complete contents of symlinked file here>...':
File name too long: <symlink-filename>

This occurs after about half of the checkout so only a part of the files will be updated and the rest of the files (after the abort) is missing.

I also tried a fresh clone and hg upd -C default leading to the same result. In the moment my 'default' branch is in an unusable state and I cannot get back to my branch. I can get back to the revision before the 'devui'-branch was created though.

所以我的问题是:是否可以跳过错误的符号链接,忽略中止并继续处理其余文件?(我可以轻松恢复该文件)。

我在 MacOSX 上使用 mercurial 2.3(通过 brew)。

谢谢你的帮助。

4

1 回答 1

0

这个 2010 年的帖子(更老的 mercurial 版本)建议在 Windows 盒子上克隆 repo,这可能不受问题的影响,并在那里恢复符号链接。

于 2012-09-13T15:47:20.057 回答