Mercurial > hg
comparison mercurial/bundle2.py @ 24071:184a2f6f40da
bundle2.unbundle20: add compressed() method
Bundlerepo uses the compressed() method to determine whether it should write
an uncompressed temporary file. Since we don't support compressed bundle2 files
at the moment, make this method return true.
author | Eric Sumner <ericsumner@fb.com> |
---|---|
date | Thu, 05 Feb 2015 15:56:50 -0800 |
parents | de32e9881698 |
children | 685639f9430d |
comparison
equal
deleted
inserted
replaced
24070:de32e9881698 | 24071:184a2f6f40da |
---|---|
605 self.ui.debug('part header size: %i\n' % headersize) | 605 self.ui.debug('part header size: %i\n' % headersize) |
606 if headersize: | 606 if headersize: |
607 return self._readexact(headersize) | 607 return self._readexact(headersize) |
608 return None | 608 return None |
609 | 609 |
610 def compressed(self): | |
611 return False | |
610 | 612 |
611 class bundlepart(object): | 613 class bundlepart(object): |
612 """A bundle2 part contains application level payload | 614 """A bundle2 part contains application level payload |
613 | 615 |
614 The part `type` is used to route the part to the application level | 616 The part `type` is used to route the part to the application level |