##// END OF EJS Templates
chgserver: spawn new process if schemes change...
Yuya Nishihara -
r44832:5cd2d91e stable
parent child Browse files
Show More
@@ -83,6 +83,7 b' def _hashlist(items):'
83 b'eol', # uses setconfig('eol', ...)
83 b'eol', # uses setconfig('eol', ...)
84 b'extdiff', # uisetup will register new commands
84 b'extdiff', # uisetup will register new commands
85 b'extensions',
85 b'extensions',
86 b'schemes', # extsetup will update global hg.schemes
86 ]
87 ]
87
88
88 _configsectionitems = [
89 _configsectionitems = [
@@ -245,6 +245,54 b' is different when using py3):'
245 YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...)
245 YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...)
246 YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting.
246 YYYY/MM/DD HH:MM:SS (PID)> $TESTTMP/extreload/chgsock/server-... is not owned, exiting.
247
247
248 global data mutated by schems
249 -----------------------------
250
251 $ hg init schemes
252 $ cd schemes
253
254 initial state
255
256 $ cat > .hg/hgrc <<'EOF'
257 > [extensions]
258 > schemes =
259 > [schemes]
260 > foo = https://foo.example.org/
261 > EOF
262 $ hg debugexpandscheme foo://expanded
263 https://foo.example.org/expanded
264 $ hg debugexpandscheme bar://unexpanded
265 bar://unexpanded
266
267 add bar
268
269 $ cat > .hg/hgrc <<'EOF'
270 > [extensions]
271 > schemes =
272 > [schemes]
273 > foo = https://foo.example.org/
274 > bar = https://bar.example.org/
275 > EOF
276 $ hg debugexpandscheme foo://expanded
277 https://foo.example.org/expanded
278 $ hg debugexpandscheme bar://expanded
279 https://bar.example.org/expanded
280
281 remove foo
282
283 $ cat > .hg/hgrc <<'EOF'
284 > [extensions]
285 > schemes =
286 > [schemes]
287 > bar = https://bar.example.org/
288 > EOF
289 $ hg debugexpandscheme foo://unexpanded
290 foo://unexpanded
291 $ hg debugexpandscheme bar://expanded
292 https://bar.example.org/expanded
293
294 $ cd ..
295
248 repository cache
296 repository cache
249 ----------------
297 ----------------
250
298
@@ -317,6 +365,8 b' shut down servers and restore environmen'
317 check server log:
365 check server log:
318
366
319 $ cat log/server.log | filterlog
367 $ cat log/server.log | filterlog
368 YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...)
369 YYYY/MM/DD HH:MM:SS (PID)> worker process exited (pid=...)
320 YYYY/MM/DD HH:MM:SS (PID)> init cached
370 YYYY/MM/DD HH:MM:SS (PID)> init cached
321 YYYY/MM/DD HH:MM:SS (PID)> id -R cached
371 YYYY/MM/DD HH:MM:SS (PID)> id -R cached
322 YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s)
372 YYYY/MM/DD HH:MM:SS (PID)> loaded repo into cache: $TESTTMP/cached (in ...s)
General Comments 0
You need to be logged in to leave comments. Login now