# HG changeset patch # User Augie Fackler # Date 1444838315 14400 # Node ID 8c0c3059f47892ffc79384c6bee75cda03f73dad # Parent 2f5c45fe3a3b743191a58e08d952476b5c2caf66 changegroup: note why a few methods on cg1unpacker exist I'm not sure what to do abstraction-wise here. It might be more sensible to make a memoryrepo that could apply a bundle in-memory and then we could make the changegroup data be strictly an applyable stream, but that's an idea for Later. diff -r 2f5c45fe3a3b -r 8c0c3059f478 mercurial/changegroup.py --- a/mercurial/changegroup.py Wed Oct 14 11:32:33 2015 -0400 +++ b/mercurial/changegroup.py Wed Oct 14 11:58:35 2015 -0400 @@ -182,6 +182,9 @@ self._stream = util.decompressors[alg](fh) self._type = alg self.callback = None + + # These methods (compressed, read, seek, tell) all appear to only + # be used by bundlerepo, but it's a little hard to tell. def compressed(self): return self._type is not None def read(self, l):