Skip to content
Snippets Groups Projects
Commit dcdc1755 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

largefiles: remove remotestore.batch()

This method was added in 9e1616307c4c. AFAICT it didn't do anything at
inception. If it did, there was no test coverage for it because
changing it to raise doesn't fail any tests at that revision.

b6e71f8af5b8 later refactored all remote.batch() calls to
remote.iterbatch(). So if this was somehow used, it isn't called
any more because there are no calls to .batch() remaining in the
repo.

I suspect the original patch author got confused by the distinction
between the peer/remote interface and the largefiles store. The lf
store is a gateway to a peer instance. It exposes additional
lf-specific methods to execute against a peer. However, it is not
a peer and doesn't need to implement batch() because peer itself
does that.

Differential Revision: https://phab.mercurial-scm.org/D316
parent c26a76e1
Branches
Tags
No related merge requests found
......@@ -12,7 +12,6 @@
from mercurial import (
error,
util,
wireproto,
)
from . import (
......@@ -109,10 +108,6 @@
'from statlfile (%r)' % stat)
return failed
def batch(self):
'''Support for remote batching.'''
return wireproto.remotebatch(self)
def _put(self, hash, fd):
'''Put file with the given hash in the remote store.'''
raise NotImplementedError('abstract method')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment