summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-24 22:48:08 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-24 22:48:08 +0200
commit9fc6619dd30c949dc7636ee307c5209cc8ff6e1b (patch)
tree6a5eef8b035ce49a4737c53beaa3909e51f9a679 /bin/pkg
parent9c68ce34407839695f995cdaffb5d33100d72257 (diff)
bin/pkg: Fixed pkg_log, nicer style
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/pkg b/bin/pkg
index 58a4c61..5992229 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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 () {