diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -516,8 +516,8 @@ class hgweb:
if not args.has_key('cmd') or args['cmd'][0] == 'changelog':
hi = self.repo.changelog.count()
- if args.has_key('pos'):
- hi = int(args['pos'][0])
+ if args.has_key('rev'):
+ hi = int(args['rev'][0])
write(self.changelog(hi))
diff --git a/templates/changeset.tmpl b/templates/changeset.tmpl
--- a/templates/changeset.tmpl
+++ b/templates/changeset.tmpl
@@ -4,7 +4,7 @@
diff --git a/templates/fileannotate.tmpl b/templates/fileannotate.tmpl
--- a/templates/fileannotate.tmpl
+++ b/templates/fileannotate.tmpl
@@ -4,11 +4,11 @@
Annotate #file# (#filenode#)
diff --git a/templates/filediff.tmpl b/templates/filediff.tmpl
--- a/templates/filediff.tmpl
+++ b/templates/filediff.tmpl
@@ -4,11 +4,11 @@
#file#
diff --git a/templates/filelog.tmpl b/templates/filelog.tmpl
--- a/templates/filelog.tmpl
+++ b/templates/filelog.tmpl
@@ -5,8 +5,8 @@
#file# revision history
diff --git a/templates/filerevision.tmpl b/templates/filerevision.tmpl
--- a/templates/filerevision.tmpl
+++ b/templates/filerevision.tmpl
@@ -4,11 +4,11 @@
#file# (revision #filenode#)
diff --git a/templates/manifest.tmpl b/templates/manifest.tmpl
--- a/templates/manifest.tmpl
+++ b/templates/manifest.tmpl
@@ -4,8 +4,8 @@
manifest: #path#
@@ -13,4 +13,4 @@
#entries#
-#footer#
\ No newline at end of file
+#footer#