##// 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 154 > from mercurial import exthelper
155 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 161 > name = os.path.basename(__file__).rsplit('.', 1)[0]
159 162 > bytesname = name.encode('utf-8')
160 163 > write(b"1) %s imported\n" % bytesname)
@@ -194,6 +197,9 b' Check that extensions are loaded in phas'
194 197
195 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 203 $ hg log -r "foo() and bar()" -q
198 204 1) foo imported
199 205 1) bar imported
@@ -209,6 +215,18 b" Check normal command's load order of ext"
209 215 4) bar uipopulate
210 216 5) foo reposetup
211 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 230 0:c24b9ac61126
213 231
214 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