【问题标题】:.hg not found when performing [hg out]执行 [hg out] 时未找到 .hg
【发布时间】:2013-07-19 16:17:14
【问题描述】:

我创建了一个本地仓库

local-host $ hg init ~/test/

然后在远程主机上进行克隆

remote-host $ hg clone ssh://user@local-host/test

没有任何问题。

当我尝试检查远程仓库中是否有传出更改时,我收到此错误

remote-host $ cd test
remote-host $ hg --verbose out
comparing with ssh://user@local-host/test
running ssh user@local-host 'hg -R test serve --stdio'
searching for changes
no changes found
remote: abort: no repository found in '/home/user' (.hg not found)!
remote: abort: no repository found in '/home/user' (.hg not found)!

如果我在远程/本地存储库中提交任何更改并推送它,我会收到错误但更改被推送。

两个主机都有相同的 mercurial 版本。

有什么想法吗?

【问题讨论】:

标签: mercurial


【解决方案1】:

您需要让它知道哪个存储库 - 最简单的是:

remote-host $ cd ~/test/ 
remote-host $ hg --verbose out

【讨论】:

  • 我正在尝试在 mercurial repo 中执行“hg --verbose out”(我用“cd test”更新了示例代码以使其清晰)。
  • 你的仓库中ls -al的输出是什么?
  • total 12 drwxrwxr-x 3 user user 4096 Jun 30 12:45 . drwxrwxr-x 26 user user 4096 Jun 30 12:45 .. drwxrwxr-x 3 user user 4096 Jun 30 12:45 .hg(我如何在回复中做多行?:p)
猜你喜欢
  • 1970-01-01
  • 2011-11-29
  • 2014-04-21
  • 2012-12-18
  • 2014-02-28
  • 2010-11-14
  • 2019-10-24
  • 1970-01-01
  • 2015-12-08
相关资源
最近更新 更多