##// END OF EJS Templates
test-extension: flush diagnostic message to stabilize chg output...
Yuya Nishihara -
r46682:56a5ea35 default
parent child Browse files
Show More
@@ -154,7 +154,10 b' Check that extensions are loaded in phas'
154 > from mercurial import exthelper
154 > from mercurial import exthelper
155 > from mercurial.utils import procutil
155 > from mercurial.utils import procutil
156 >
156 >
157 > write = procutil.stdout.write
157 > def write(msg):
158 > procutil.stdout.write(msg)
159 > procutil.stdout.flush()
160 >
158 > name = os.path.basename(__file__).rsplit('.', 1)[0]
161 > name = os.path.basename(__file__).rsplit('.', 1)[0]
159 > bytesname = name.encode('utf-8')
162 > bytesname = name.encode('utf-8')
160 > write(b"1) %s imported\n" % bytesname)
163 > write(b"1) %s imported\n" % bytesname)
@@ -194,6 +197,9 b' Check that extensions are loaded in phas'
194
197
195 Check normal command's load order of extensions and registration of functions
198 Check normal command's load order of extensions and registration of functions
196
199
200 On chg server, extension should be first set up by the server. Then
201 object-level setup should follow in the worker process.
202
197 $ hg log -r "foo() and bar()" -q
203 $ hg log -r "foo() and bar()" -q
198 1) foo imported
204 1) foo imported
199 1) bar imported
205 1) bar imported
@@ -209,6 +215,18 b" Check normal command's load order of ext"
209 4) bar uipopulate
215 4) bar uipopulate
210 5) foo reposetup
216 5) foo reposetup
211 5) bar reposetup
217 5) bar reposetup
218 4) foo uipopulate (chg !)
219 4) bar uipopulate (chg !)
220 4) foo uipopulate (chg !)
221 4) bar uipopulate (chg !)
222 4) foo uipopulate (chg !)
223 4) bar uipopulate (chg !)
224 4) foo uipopulate (chg !)
225 4) bar uipopulate (chg !)
226 4) foo uipopulate (chg !)
227 4) bar uipopulate (chg !)
228 5) foo reposetup (chg !)
229 5) bar reposetup (chg !)
212 0:c24b9ac61126
230 0:c24b9ac61126
213
231
214 Check hgweb's load order of extensions and registration of functions
232 Check hgweb's load order of extensions and registration of functions
General Comments 0
You need to be logged in to leave comments. Login now