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>
This commit is contained in:
Dan McGee 2008-11-30 16:07:06 -06:00
parent f7192b5958
commit 346139298b
1 changed files with 1 additions and 1 deletions

View File

@ -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