[英]hgk/hg view works with established repo but not with new repo
> uname -a
Linux xxx 2.6.32-573.22.1.el6.i686 #1 SMP Wed Mar 23 00:37:12 UTC 2016
i686 i686 i386 GNU/Linux
> python --version
Python 2.6.6
> hg --version
Mercurial Distributed SCM (version 2.2.2)
> cat ~/.hgrc
[extensions]
hgext.hgk =
The native hg that came with centos6.7 is 1.4.4, but I updated it to 2.2.2 from rpm. centos6.7随附的本地hg为1.4.4,但我将其从rpm更新为2.2.2。
> cd ~/tmp/
> hg clone http://hg.openjdk.java.net/jdk8u/jdk8u
> cd jdk8u
> hg view
thg window displays as expected. 该窗口将按预期显示。 No problems encountered. 没有遇到任何问题。
hg view
encounters error when viewing newly created repo 查看新创建的仓库时, hg view
遇到错误
> hg init ~/tmp/mizraim
> cd !$
> hg view
child process exited abnormally
while executing
"exec $env(HG) --config ui.report_untrusted=false heads"
[/media/sf_Temp] is shared drive between this Linux guest with Win7 host as [C:\\Temp] [/ media / sf_Temp]在此Linux来宾与Win7主机之间以[C:\\ Temp]共享驱动器
> cd /media/sf_Temp
> hg clone ~/tmp/mizraim
I am able to view [/media/sf_Temp/mizraim] as [C:\\Temp\\mizraim] using my win 7 version of TortoiseHg Workbench. 我可以使用Win 7版本的TortoiseHg Workbench将[/ media / sf_Temp / mizraim]视作[C:\\ Temp \\ mizraim]。
hg init
? 我的hg init
什么问题? hg view
view my newly created repo, but it can view the clone of jdk8u? 为什么hg view
无法查看我新创建的存储库,但可以查看jdk8u的克隆? hg view
work on repo mizraim? 我可以复制到[mizraim / .hg]中的[jdk8u / .hg]角落中隐藏着什么,以使hg view
可以在repo mizraim上使用? In order: 为了:
What is wrong with my
hg init
? 我的hg init
什么问题?
Nothing: it created a new, empty repository. 没什么:它创建了一个新的空存储库。
Why can't
hg view
view my newly created repo, but it can view the clone of jdk8u? 为什么hg view
无法查看我新创建的存储库,但可以查看jdk8u的克隆?
There is nothing in it to view. 没有任何内容可供查看。
(In particular, hg heads
prints no heads and exits with a failure status, which causes hg view
to abort. Probably hg view
should just show you the empty repository, but that would not be particularly useful anyway.) (特别是, hg heads
不会打印出head并以失败状态退出,这会导致hg view
中止hg view
可能只是向您显示空的存储库,但是无论如何这并不是特别有用。)
What is hidden in the nooks of the [jdk8u/.hg] that I could hackplicate into [mizraim/.hg], to make
hg view
work on repo mizraim? 我可以复制到[mizraim / .hg]中的[jdk8u / .hg]角落中隐藏着什么,以使hg view
可以在repo mizraim上使用?
Nothing: you just need some revisions. 没什么:您只需要进行一些修订。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.