changeset 26706:8c0c3059f478

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.
author Augie Fackler <augie@google.com>
date Wed, 14 Oct 2015 11:58:35 -0400
parents 2f5c45fe3a3b
children 5ee6bd529300
files mercurial/changegroup.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):