Zoom.Quiet (zoomq) wrote,
Zoom.Quiet
zoomq

Ubuntu 8.04 Gailivable Hg 1.7

Gailivable! Ubuntu 8.04 的apt 只能安装Hg 1.01 ,果然是纯Py 作品,通过 easy_install
,可以直接自行编译安装 Hg 1.7! 而且是零配置!

参考:
UnixInstall - Mercurial
http://mercurial.selenic.com/wiki/UnixInstall

$ sudo apt-get install build-essential gcc python-dev asciidoc xmlto
python-setuptools
然后
$ sudo easy_install -U mercurial
齐活儿!

然后,# 101105 http://stevelosh.com/blog/2009/03/mercurial-bash-prompts/
#export PS1='\n\u at \h in \w\n$ '
D=$'\e[37;40m'
PINK=$'\e[35;40m'
GREEN=$'\e[32;40m'
ORANGE=$'\e[33;40m'

hg_ps1() {
#hg prompt "{${D} on ${PINK}{branch}}{${D} at
${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null
hg prompt "{${D}on ${PINK}{branch}}{${GREEN}{status}}" 2> /dev/null
}

export PS1='\n${PINK}\u${D} @ ${ORANGE}\h ${D}in ${GREEN}\w $(hg_ps1)${D}\n$ '

配合 ~/.hgrc
[ui]
username = Zoom Quiet <zoomquiet+hg@gmail.com>

[extensions]
graphlog =
color =
hgext.purge=
prompt = /path/2/hg-prompt/prompt.py

[color]
status.modified = magenta bold
status.added = green bold
status.removed = red bold
status.deleted = cyan bold
status.unknown = blue bold
status.ignored = black bold

[defaults]
glog = --style compact

[alias]
ll = glog --style compact

就可以在命令中,获得GUI 一般的直观 Hg 分支观察体验了!
zoomq @ zq4wk1ubuntu in ~/Desktop/KiS/zoom.quiet/ijinshan/bj-cfg on default
$ hg ll -l 8
@ 27[tip]:26,25 198097e8f6fb 2010-11-13 15:51 +0800 zoomquiet+hg
|\ merged all
| |
| o 26:24 f40909f3da8f 2010-11-13 15:50 +0800 zoomquiet+hg
| | clean loc hooks
| |
o | 25:22 7030e28b0d24 2010-11-13 15:49 +0800 ijinshanoss+hg
| | 集成所有仓库间的同步和自动事务在 oss 的 incoming hooks 中
| |
| o 24:23,22 60c522de5854 2010-11-13 15:42 +0800 zoomquiet+hg
|/| merge form code.ij
| |
| o 23:20,21 1d3cd094606a 2010-11-13 15:41 +0800 zoomquiet+hg
| |\ sync form code.ij
| | |
o---+ 22 fd20712ea2e2 2010-11-13 15:41 +0800 ijinshanoss+hg
| | hooks for incoming up and push oss
/ /
| o 21:19 a119c88ecd19 2010-11-13 15:31 +0800 ijinshanoss+hg
| | usage hooks for auto sync oss and oss-=ronly
...

zq_2010-11-13-223342_722x509_scrot.png

Tags: floss, hg, livin, pythonic, ubuntu
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments