comparison mercurial/hgweb/webcommands.py @ 36714:250f3168d907

hgweb: fix up trailing slash detection on Python 3 Fixes a couple of hgweb tests. Differential Revision: https://phab.mercurial-scm.org/D2661
author Augie Fackler <augie@google.com>
date Sun, 04 Mar 2018 13:04:12 -0500
parents 24897a9d18ac
children 1a1972b1a1ff
comparison
equal deleted inserted replaced
36713:2442927cdd96 36714:250f3168d907
493 493
494 files = {} 494 files = {}
495 dirs = {} 495 dirs = {}
496 parity = paritygen(web.stripecount) 496 parity = paritygen(web.stripecount)
497 497
498 if path and path[-1] != "/": 498 if path and path[-1:] != "/":
499 path += "/" 499 path += "/"
500 l = len(path) 500 l = len(path)
501 abspath = "/" + path 501 abspath = "/" + path
502 502
503 for full, n in mf.iteritems(): 503 for full, n in mf.iteritems():