D316: largefiles: remove remotestore.batch()
This revision was automatically updated to reflect the committed changes. Closed by commit rHGdcdc17551653: largefiles: remove remotestore.batch() (authored by indygreg). CHANGED PRIOR TO COMMIT https://phab.mercurial-scm.org/D316?vs=731&id=790#toc REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D316?vs=731&id=790 REVISION DETAIL https://phab.mercurial-scm.org/D316 AFFECTED FILES hgext/largefiles/remotestore.py CHANGE DETAILS diff --git a/hgext/largefiles/remotestore.py b/hgext/largefiles/remotestore.py --- a/hgext/largefiles/remotestore.py +++ b/hgext/largefiles/remotestore.py @@ -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') To: indygreg, #hg-reviewers, quark Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D316: largefiles: remove remotestore.batch()
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This method was added in https://phab.mercurial-scm.org/rHG9e1616307c4cca80d177203afc39e5eecda60c84. 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. https://phab.mercurial-scm.org/rHGb6e71f8af5b8710139b64706a375b3f16eb1241e 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. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D316 AFFECTED FILES hgext/largefiles/remotestore.py CHANGE DETAILS diff --git a/hgext/largefiles/remotestore.py b/hgext/largefiles/remotestore.py --- a/hgext/largefiles/remotestore.py +++ b/hgext/largefiles/remotestore.py @@ -109,10 +109,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') To: indygreg, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel