/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bundle/bundle_data.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-11 00:28:34 UTC
  • mfrom: (1793.3.13 bundle-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20060711002834-437bd17f804929ad
(jam) Updates to bundles, handle binary files, non integer timezone offsets, and sftp pull

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        split up, based on the assumptions that can be made
110
110
        when information is missing.
111
111
        """
112
 
        from bzrlib.bundle.common import unpack_highres_date
 
112
        from bzrlib.bundle.serializer import unpack_highres_date
113
113
        # Put in all of the guessable information.
114
114
        if not self.timestamp and self.date:
115
115
            self.timestamp, self.timezone = unpack_highres_date(self.date)
723
723
    from bzrlib.iterablefile import IterableFile
724
724
    if file_patch == "":
725
725
        return IterableFile(())
726
 
    return IterableFile(iter_patched(original, file_patch.splitlines(True)))
 
726
    # string.splitlines(True) also splits on '\r', but the iter_patched code
 
727
    # only expects to iterate over '\n' style lines
 
728
    return IterableFile(iter_patched(original,
 
729
                StringIO(file_patch).readlines()))