##// END OF EJS Templates
largefiles: make sure debugstate command is populated before wrapping...
Yuya Nishihara -
r32180:1b27e179 stable
parent child Browse files
Show More
@@ -21,6 +21,7 b' from mercurial import ('
21 cmdutil,
21 cmdutil,
22 commands,
22 commands,
23 copies,
23 copies,
24 debugcommands,
24 exchange,
25 exchange,
25 extensions,
26 extensions,
26 filemerge,
27 filemerge,
@@ -39,6 +40,11 b' from . import ('
39 )
40 )
40
41
41 def uisetup(ui):
42 def uisetup(ui):
43 # TODO: debugcommands should use a separate command table
44 # Side-effect of accessing is debugcommands module is guaranteed to be
45 # imported and commands.table is populated.
46 debugcommands.command
47
42 # Disable auto-status for some commands which assume that all
48 # Disable auto-status for some commands which assume that all
43 # files in the result are under Mercurial's control
49 # files in the result are under Mercurial's control
44
50
@@ -212,6 +212,25 b' Test display of largefiles in hgweb'
212 $ killdaemons.py
212 $ killdaemons.py
213 #endif
213 #endif
214
214
215 Test largefiles can be loaded in hgweb (wrapcommand() shouldn't fail)
216
217 $ cat <<EOF > "$TESTTMP/hgweb.cgi"
218 > #!/usr/bin/env python
219 > from mercurial import demandimport; demandimport.enable()
220 > from mercurial.hgweb import hgweb
221 > from mercurial.hgweb import wsgicgi
222 > application = hgweb('.', 'test repo')
223 > wsgicgi.launch(application)
224 > EOF
225
226 $ PATH_INFO='/' \
227 > QUERY_STRING='' \
228 > REQUEST_METHOD='GET' \
229 > SCRIPT_NAME='' \
230 > SERVER_NAME='localhost' \
231 > SERVER_PORT='80' \
232 > python "$TESTTMP/hgweb.cgi" > /dev/null
233
215 Test archiving the various revisions. These hit corner cases known with
234 Test archiving the various revisions. These hit corner cases known with
216 archiving.
235 archiving.
217
236
General Comments 0
You need to be logged in to leave comments. Login now