Mercurial > hg
comparison tests/test-remotefilelog-share.t @ 40577:157f0e29eaa3
remotefilelog: avoid accessing repo instance after dispatch
Upstream commit c5e6c1ba1c79 (hg: don't reuse repo instance after
unshare(), 2018-09-12) poisoned the repo instance after
unshare(). That made `hg unshare` fail with remotefilelog because we
tried to close the fileserverclient after dispatch by accessing it via
the repo. This patch fixes that by storing the reference to the
fileserverclient at the beginning of dispatch.
An analogous patch was sent for remotefilelog version in FB's
hg-experimental as D5246.
Differential Revision: https://phab.mercurial-scm.org/D5253
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 09 Nov 2018 10:47:24 -0800 |
parents | fb490d798be0 |
children | 0800d9e6e216 |
comparison
equal
deleted
inserted
replaced
40576:85bf93def065 | 40577:157f0e29eaa3 |
---|---|
20 | 20 |
21 $ hgcloneshallow ssh://user@dummy/master source --noupdate -q | 21 $ hgcloneshallow ssh://user@dummy/master source --noupdate -q |
22 $ hg share source dest | 22 $ hg share source dest |
23 updating working directory | 23 updating working directory |
24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 24 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
25 $ hg -R dest unshare |