diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -1082,7 +1082,7 @@ def filelog(web): linerange = webutil.formatlinerange(*lrange) # deactivate numeric nav links when linerange is specified as this # would required a dedicated "revnav" class - nav = None + nav = [] if descend: it = dagop.blockdescendants(fctx, *lrange) else: diff --git a/tests/test-hgweb-filelog.t b/tests/test-hgweb-filelog.t --- a/tests/test-hgweb-filelog.t +++ b/tests/test-hgweb-filelog.t @@ -755,7 +755,7 @@ before addition - error + | @@ -791,7 +791,7 @@ before addition - error @@ -875,7 +875,7 @@ before addition - error + |
@@ -902,7 +902,7 @@ before addition - error @@ -1394,7 +1394,7 @@ filelog with 'linerange' and 'patch' + |
@@ -1500,7 +1500,7 @@ filelog with 'linerange' and 'patch' @@ -1651,7 +1651,7 @@ filelog with 'linerange' and 'patch' + |
@@ -1696,7 +1696,7 @@ filelog with 'linerange' and 'patch'