mercurial - 是否可以通过添加 subrepos 来更新?

标签 mercurial mercurial-subrepos

我的存储库中有一个文件夹。然后我将此文件夹设为子存储库(具有完全相同的文件),提交并推送此更改。现在我无法通过该提交进行更新。这是我收到的消息:

% hg update --repository <path to repo> --config ui.merge=internal:fail --rev 1159 --clean
abort: path 'subrepo\include\header.h' is inside nested repo 'subrepo'
[command returned code 255 Wed Dec 05 11:57:45 2012]

subrepo 是 subrepo 现在所在文件夹的名称。 有什么方法可以解决这个问题并更新到早期版本?

最佳答案

找到解决方案:删除有问题的文件夹,然后使用“放弃更改”选项进行更新。像魅力一样工作。

关于mercurial - 是否可以通过添加 subrepos 来更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13720517/

相关文章:

version-control - 我可以在不接触工作目录的情况下导入补丁吗?

mercurial - Mercurial : How to mark a changeset as 'stable'

mercurial - .hgsub 中的绝对路径有什么问题?

mercurial - 使用 Beyond Compare (Mercurial) 解决 merge 冲突

mercurial - 如何让 mercurial 忽略名称中有空格的特定文件夹

git - Mercurial : "invalid-email-address" at GitHub

mercurial - 如何使 Mercurial 子存​​储库始终指向某个变更集或标签?

mercurial - Mercurial 子存​​储库可以驻留在子文件夹中吗?

git - 在 mercurial 子存​​储库中使用特定 (git) 分支