# HG changeset patch # User Augie Fackler # Date 2020-03-17 21:21:34 # Node ID 5483e9c759e4671e1195222aea9eed51ad5329a7 # Parent 3aab524a84808c0580fa6b8a46c6179e7e0f3b9b tests: add test for remotefilelog interactions with hgweb It's not uncommon for hg users to rely on hgweb as a simple GUI and history browser (I do this all the time on Mercurial), but we lack any tests to ensure things keep working. At present, this merely demonstrates the "view contents of a single file" endpoint is broken. I'll fix that in a subsequent change. Differential Revision: https://phab.mercurial-scm.org/D8298 diff --git a/tests/test-remotefilelog-hgweb.t b/tests/test-remotefilelog-hgweb.t new file mode 100644 --- /dev/null +++ b/tests/test-remotefilelog-hgweb.t @@ -0,0 +1,32 @@ +#require no-windows serve + + $ . "$TESTDIR/remotefilelog-library.sh" + + $ cat >> $HGRCPATH < [extensions] + > remotefilelog= + > share= + > EOF + + $ hg init master + $ cd master + $ cat >> .hg/hgrc < [remotefilelog] + > server=True + > EOF + $ echo x > x + $ hg commit -qAm x + + $ cd .. + + + $ hgcloneshallow ssh://user@dummy/master wdir --noupdate -q + $ 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 + + Internal Server Error (no-eol) + [1] +