summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-11-30 16:07:06 -0600
committerDan McGee <dan@archlinux.org>2008-11-30 16:07:06 -0600
commit346139298bc547d1cbeb5d41f2067577b96ff1fa (patch)
treefca328aea60856e2e75f8a77c95c28d6cd052c22 /scripts
parentf7192b595881103f145a118d63d1b342ffd740b4 (diff)
Simplify mercurial revision command
Not only does this require less sed-magic, it also fixes FS#12286 where fetching the revision number fails if mercurial is in compact mode. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 599f0f9c..4cc255cc 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1062,7 +1062,7 @@ devel_check() {
hg clone $_hgroot/$_hgrepo ./src/$_hgrepo
cd ./src/$_hgrepo
fi
- newpkgver=$(hg tip | sed -n '1s/[^0-9]*\([^:]*\):.*$/\1/p')
+ newpkgver=$(hg tip --template "{rev}")
cd ../../
fi