Mercurial > hg
view tests/test-push-hook-lock.out @ 8552:06561793778e
inotify: Separate query sending logic from Server starting.
Use a decorator around the public statusquery method of Client:
start_server(query_to_server):
try:
query_to_server()
except QueryFailed:
[error recovery, inotify Server (re)starting]
query_to_server()
This way, introducing a new xxxquery Client method is easy:
one has only to code the protocol part of xxxquery, ignoring errors,
and decorating it using start_server to handle server recovery
and (re)starts
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Tue, 07 Apr 2009 19:30:01 +0900 |
parents | 0750f11152fe |
children | a3d73b3e1f8a |
line wrap: on
line source
adding foo updating working directory 1 files updated, 0 files merged, 0 files removed, 0 files unresolved updating working directory 1 files updated, 0 files merged, 0 files removed, 0 files unresolved pushing to ../2 searching for changes adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files