summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-30 19:53:28 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-30 19:53:28 +0200
commit3f5f420513a27428aad7b8aaff343ab2e99eada1 (patch)
treeac1782aa45ebea0dc4276f4ed86f464a7c8d64a9
parentab45fb200712480c729c353c00b3adb46eac0778 (diff)
show repo size on info
-rwxr-xr-xbin/pkg4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 35e5946..dde37a8 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -177,7 +177,9 @@ pkg_info () {
info "Current version: "
echo $LOG | grep -m1 'changeset:' | grep -E -o '[0-9]{1,}:[0-9a-f]*'
info "Last update: "
- echo $LOG | grep -m1 'date:' | grep -Eo '[A-Z][a-z]{2}.*'
+ echo $LOG | grep -m1 'date:' | grep -Eo '[A-Z][a-z]{2}.*'
+ info "repo size: "
+ du -sh .hg | grep -o '.*[KMG]'
if ([ -r .deps ]) {
info "Dependencies:\n"
cat .deps