changeset 36894:97e1dda94af8

hgweb: fix a bug due to variable name typo It looks like the "sort" query string parameter was not being honored properly. Differential Revision: https://phab.mercurial-scm.org/D2804
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 10 Mar 2018 20:54:44 -0800
parents 4daa22071d5d
children fc4e31297ffb
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sat Mar 10 20:51:46 2018 -0800
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Mar 10 20:54:44 2018 -0800
@@ -481,7 +481,7 @@
         sortable = ["name", "description", "contact", "lastchange"]
         sortcolumn, descending = sortdefault
         if 'sort' in wsgireq.req.qsparams:
-            sortcolum = wsgireq.req.qsparams['sort']
+            sortcolumn = wsgireq.req.qsparams['sort']
             descending = sortcolumn.startswith('-')
             if descending:
                 sortcolumn = sortcolumn[1:]