##// END OF EJS Templates
remotefilelog: add fake heads() method that allows viewing a file in hgweb...
Augie Fackler -
r45060:9e631081 default
parent child Browse files
Show More
@@ -259,6 +259,10 b' class remotefilelog(object):'
259
259
260 raise RuntimeError(b"len not supported")
260 raise RuntimeError(b"len not supported")
261
261
262 def heads(self):
263 # Fake heads of the filelog to satisfy hgweb.
264 return []
265
262 def empty(self):
266 def empty(self):
263 return False
267 return False
264
268
@@ -24,9 +24,15 b''
24 $ cd wdir
24 $ cd wdir
25 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
25 $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log
26 $ cat hg.pid >> $DAEMON_PIDS
26 $ cat hg.pid >> $DAEMON_PIDS
27 $ (get-with-headers.py localhost:$HGPORT 'file/tip/x')
27 $ get-with-headers.py localhost:$HGPORT 'file/tip/x' | head -n 10
28 500 Internal Server Error
28 200 Script output follows
29
29
30 Internal Server Error (no-eol)
30 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
31 [1]
31 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
32 <head>
33 <link rel="icon" href="/static/hgicon.png" type="image/png" />
34 <meta name="robots" content="index, nofollow" />
35 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
36 <script type="text/javascript" src="/static/mercurial.js"></script>
37
32
38
General Comments 0
You need to be logged in to leave comments. Login now