diff --git a/srcpkgs/mercurial/template b/srcpkgs/mercurial/template
index c05e8a9484f..835b9701ab4 100644
--- a/srcpkgs/mercurial/template
+++ b/srcpkgs/mercurial/template
@@ -1,16 +1,16 @@
 # Template file for 'mercurial'
 pkgname=mercurial
-version=2.3
+version=2.3.1
 revision=1
 build_style=python-module
 makedepends="python-devel"
-pycompile_module="$pkgname hgext"
+pycompile_module="${pkgname} hgext"
 short_desc="Fast, lightweight source control management system"
 maintainer="Juan RP <xtraeme@gmail.com>"
 license="GPL-2"
 homepage="http://mercurial.selenic.com"
-distfiles="$homepage/release/$pkgname-$version.tar.gz"
-checksum=456cb8a9fb15606a04d81589a3459d258149170008ca64c62e5a6cbaf5f0fe5f
+distfiles="${homepage}/release/${pkgname}-${version}.tar.gz"
+checksum=ef587fdd3b062e08eb4012e7870f4d0a00fd834f11578bfba80313b10f808541
 long_desc="
  Mercurial is a fast, lightweight Source Control Management system
  designed for efficient handling of very large distributed projects.