【问题标题】:hg push fails with error code 255 and error message file existshg push 失败,错误代码 255 并且错误消息文件存在
【发布时间】:2012-07-22 08:32:01
【问题描述】:

我正在尝试在 mercurial 中进行一些涉及推送新分支的更改,但我得到了以下输出:

寻找变化

添加变更集

添加清单

添加文件更改

交易中止!

回滚完成

中止:文件存在

我正在使用带有子存储库的 Mercurial 1.9.2,我使用的命令是 hg push --new-branch。我也试过-f,似乎没有任何效果。 我正在从 Linux 机器(ununtu 10.4)推送到 Windows 机器。 Windows 是使用 cifs mount...

【问题讨论】:

    标签: mercurial


    【解决方案1】:

    我找到了答案,似乎某些文件属性已更改。 将它们改回默认值即可解决问题。

    【讨论】:

      【解决方案2】:

      您要推送到哪种远程存储库?

      当我从 Windows 机器推送到我家在 Linux 上运行的 NAS 上的网络共享时,我遇到了类似的问题(但有不同的错误消息):
      Can you 'push' to network share using Mercurial on 64bit Windows 7?

      从 Windows 机器推送到 Windows 机器上的网络共享是可行的(我们正在工作中这样做),尽管 Mercurial 团队不建议推送到网络共享。

      引用the "shared disk" part at "Publishing Repositories" in the Mercurial wiki

      通常仅限于 Intranet,一般不推荐,因为网络文件系统可靠性的一般问题

      【讨论】:

      • 我正在从 Linux 机器(ununtu 10.4)推送到 Windows 机器。 Windows 是使用 cifs mount...
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多