changegroup: note why a few methods on cg1unpacker exist
authorAugie Fackler <augie@google.com>
Wed, 14 Oct 2015 11:58:35 -0400
changeset 26706 8c0c3059f478
parent 26705 2f5c45fe3a3b
child 26707 5ee6bd529300
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.
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):