Patchwork D8298: tests: add test for remotefilelog interactions with hgweb

login
register
mail settings
Submitter phabricator
Date March 19, 2020, 8:45 a.m.
Message ID <56db745e7977f628a7ebc1d8df762aac@localhost.localdomain>
Download mbox | patch
Permalink /patch/45824/
State Not Applicable
Headers show

Comments

phabricator - March 19, 2020, 8:45 a.m.
Closed by commit rHG5483e9c759e4: tests: add test for remotefilelog interactions with hgweb (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8298?vs=20816&id=20829

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8298/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8298

AFFECTED FILES
  tests/test-remotefilelog-hgweb.t

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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 <<EOF
+  > [extensions]
+  > remotefilelog=
+  > share=
+  > EOF
+
+  $ hg init master
+  $ cd master
+  $ cat >> .hg/hgrc <<EOF
+  > [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]
+