在linux下使用hgview

来源:互联网 发布:process网络是什么意思 编辑:程序博客网 时间:2024/04/27 15:44
用hg 管理源码效率很高,建议大家使用,其实本机上使用更方便。

1.apt-get install mercurial

2.在源码目录输入:
#hg init
再输入:
# hg add

3.hg view默认是关闭的,修改/etc/mercurial/hgrc.d/hgext.rc
将:
# allows browsing the history of a repository in a graphical way
# add the 'view' command
# hgext.hgk =
hgext.hgk前的注释去掉保存退出。

4.在源码目录输入 hg view,提示:

/usr/bin/env: wish: 没有该文件或目录

5.apt-get install tk

安装后再次输入:hg view 一切正常。
原创粉丝点击