diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-24 22:48:08 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-24 22:48:08 +0200 |
commit | 9fc6619dd30c949dc7636ee307c5209cc8ff6e1b (patch) | |
tree | 6a5eef8b035ce49a4737c53beaa3909e51f9a679 /bin | |
parent | 9c68ce34407839695f995cdaffb5d33100d72257 (diff) |
bin/pkg: Fixed pkg_log, nicer style
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -127,15 +127,18 @@ vcs_add () { } vcs_incoming () { - # [ -d .vcs ] && vcs incoming will not work here, since the [] will return - # something. We need the return value of vcs. [ -d .hg ] && {hg --quiet incoming; return} [ -d .git ] && {true ; return} } +vcs_log () { + [ -d .hg ] && {hg log | less ; return} + [ -d .git ] && {git log ; return} +} + vcs_update () { - [ -d .hg ] && hg pull --update - [ -d .git ] && git pull + [ -d .hg ] && {hg pull --update ; return} + [ -d .git ] && {git pull ; return} } @@ -454,7 +457,8 @@ pkg_info () { pkg_log () { check_installed "$1" - hg -R $PDIR/$1 glog | less + cd $PDIR/$1 + vcs_log } pkg_changelog () { |