Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 47310:7edaf91c7886
updatecaches: use the `caches` argument instead of a special `full` value
After a clone we want to update most cachem, but not exactly all of them. We
can now cleanly express this.
Differential Revision: https://phab.mercurial-scm.org/D10730
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 17 May 2021 15:42:18 +0200 |
parents | bcafcd779d2e |
children | 1c7f3d911d0f |
line wrap: on
line diff
--- a/mercurial/hg.py Mon May 17 15:27:29 2021 +0200 +++ b/mercurial/hg.py Mon May 17 15:42:18 2021 +0200 @@ -52,6 +52,7 @@ verify as verifymod, vfs as vfsmod, ) +from .interfaces import repository as repositorymod from .utils import ( hashutil, stringutil, @@ -1054,7 +1055,7 @@ # as the only "bad" outcome would be some slowness. That potential # slowness already affect reader. with destrepo.lock(): - destrepo.updatecaches(full=b"post-clone") + destrepo.updatecaches(caches=repositorymod.CACHES_POST_CLONE) finally: release(srclock, destlock) if cleandir is not None: