##// END OF EJS Templates
largefiles: cache largefile check on both path and commit_id
dan -
r770:5289c8bb default
parent child Browse files
Show More
@@ -558,13 +558,13 b' class HgRemote(RemoteBase):'
558 return repo.ui.config(section, name, untrusted=untrusted)
558 return repo.ui.config(section, name, untrusted=untrusted)
559
559
560 @reraise_safe_exceptions
560 @reraise_safe_exceptions
561 def is_large_file(self, wire, path):
561 def is_large_file(self, wire, commit_id, path):
562 cache_on, context_uid, repo_id = self._cache_on(wire)
562 cache_on, context_uid, repo_id = self._cache_on(wire)
563 @self.region.conditional_cache_on_arguments(condition=cache_on)
563 @self.region.conditional_cache_on_arguments(condition=cache_on)
564 def _is_large_file(_context_uid, _repo_id, _path):
564 def _is_large_file(_context_uid, _repo_id, _commit_id, _path):
565 return largefiles.lfutil.isstandin(path)
565 return largefiles.lfutil.isstandin(path)
566
566
567 return _is_large_file(context_uid, repo_id, path)
567 return _is_large_file(context_uid, repo_id, commit_id, path)
568
568
569 @reraise_safe_exceptions
569 @reraise_safe_exceptions
570 def is_binary(self, wire, revision, path):
570 def is_binary(self, wire, revision, path):
General Comments 0
You need to be logged in to leave comments. Login now