# HG changeset patch # User Daniel Dourvaris # Date 2019-08-23 18:56:22 # Node ID 5289c8bb97aaa0d90c6a4f50e2884b757e4dd4fa # Parent 077cbac3177790e5d2e4c88cab63967c9f4bcdd8 largefiles: cache largefile check on both path and commit_id diff --git a/vcsserver/hg.py b/vcsserver/hg.py --- a/vcsserver/hg.py +++ b/vcsserver/hg.py @@ -558,13 +558,13 @@ class HgRemote(RemoteBase): return repo.ui.config(section, name, untrusted=untrusted) @reraise_safe_exceptions - def is_large_file(self, wire, path): + def is_large_file(self, wire, commit_id, path): cache_on, context_uid, repo_id = self._cache_on(wire) @self.region.conditional_cache_on_arguments(condition=cache_on) - def _is_large_file(_context_uid, _repo_id, _path): + def _is_large_file(_context_uid, _repo_id, _commit_id, _path): return largefiles.lfutil.isstandin(path) - return _is_large_file(context_uid, repo_id, path) + return _is_large_file(context_uid, repo_id, commit_id, path) @reraise_safe_exceptions def is_binary(self, wire, revision, path):