diff --git a/hgext/remotefilelog/remotefilelog.py b/hgext/remotefilelog/remotefilelog.py --- a/hgext/remotefilelog/remotefilelog.py +++ b/hgext/remotefilelog/remotefilelog.py @@ -259,6 +259,10 @@ raise RuntimeError(b"len not supported") + def heads(self): + # Fake heads of the filelog to satisfy hgweb. + return [] + def empty(self): return False diff --git a/tests/test-remotefilelog-hgweb.t b/tests/test-remotefilelog-hgweb.t --- a/tests/test-remotefilelog-hgweb.t +++ b/tests/test-remotefilelog-hgweb.t @@ -24,9 +24,15 @@ $ cd wdir $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log $ cat hg.pid >> $DAEMON_PIDS - $ (get-with-headers.py localhost:$HGPORT 'file/tip/x') - 500 Internal Server Error + $ get-with-headers.py localhost:$HGPORT 'file/tip/x' | head -n 10 + 200 Script output follows - Internal Server Error (no-eol) - [1] + + +
+ + + + +