hgweb: fix a bug due to variable name typo
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 10 Mar 2018 20:54:44 -0800
changeset 36888 97e1dda94af8
parent 36887 4daa22071d5d
child 36889 fc4e31297ffb
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
mercurial/hgweb/hgwebdir_mod.py
--- 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:]