Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 36888: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 | 98baf8dea553 |
children | fc4e31297ffb |
comparison
equal
deleted
inserted
replaced
36887:4daa22071d5d | 36888:97e1dda94af8 |
---|---|
479 | 479 |
480 self.refresh() | 480 self.refresh() |
481 sortable = ["name", "description", "contact", "lastchange"] | 481 sortable = ["name", "description", "contact", "lastchange"] |
482 sortcolumn, descending = sortdefault | 482 sortcolumn, descending = sortdefault |
483 if 'sort' in wsgireq.req.qsparams: | 483 if 'sort' in wsgireq.req.qsparams: |
484 sortcolum = wsgireq.req.qsparams['sort'] | 484 sortcolumn = wsgireq.req.qsparams['sort'] |
485 descending = sortcolumn.startswith('-') | 485 descending = sortcolumn.startswith('-') |
486 if descending: | 486 if descending: |
487 sortcolumn = sortcolumn[1:] | 487 sortcolumn = sortcolumn[1:] |
488 if sortcolumn not in sortable: | 488 if sortcolumn not in sortable: |
489 sortcolumn = "" | 489 sortcolumn = "" |