Mercurial > hg
diff tests/test-commandserver.t @ 40875:e7110f44ee2d
commandserver: pass around option to hook repo instance creation
This is necessary to wrap a repo instance so the master process will be
notified on repo.close().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 31 Oct 2018 21:57:11 +0900 |
parents | 6a75363f834a |
children | d98ec36be808 |
line wrap: on
line diff
--- a/tests/test-commandserver.t Sun Dec 09 19:40:54 2018 -0500 +++ b/tests/test-commandserver.t Wed Oct 31 21:57:11 2018 +0900 @@ -848,10 +848,10 @@ $ cat <<'EOF' > ../earlycrasher.py > from mercurial import commandserver, extensions - > def _serverequest(orig, ui, repo, conn, createcmdserver): + > def _serverequest(orig, ui, repo, conn, createcmdserver, prereposetups): > def createcmdserver(*args, **kwargs): > raise Exception('crash') - > return orig(ui, repo, conn, createcmdserver) + > return orig(ui, repo, conn, createcmdserver, prereposetups) > def extsetup(ui): > extensions.wrapfunction(commandserver, b'_serverequest', _serverequest) > EOF