Skip to content
Snippets Groups Projects
  1. Sep 20, 2010
  2. Sep 17, 2010
  3. Sep 20, 2010
    • Martin Geisler's avatar
      archive: set date to 1980 for very old zip files · 381f1312
      Martin Geisler authored
      The zip file format stores the date using "MS-DOS format" which
      apparently means that they use 1980 as their epoch. Python's zipfile
      module emits deprecation warnings of this form
      
        /usr/lib/python2.6/zipfile.py:1108: DeprecationWarning: struct
        integer overflow masking is deprecated
          self.fp.write(zinfo.FileHeader())
        /usr/lib/python2.6/zipfile.py:1108: DeprecationWarning: 'H' format
        requires 0 <= number <= 65535
          self.fp.write(zinfo.FileHeader())
        /home/mg/src/mercurial-crew/mercurial/archival.py:169:
        DeprecationWarning: struct integer overflow masking is deprecated
          self.z.close()
        /home/mg/src/mercurial-crew/mercurial/archival.py:169:
        DeprecationWarning: 'H' format requires 0 <= number <= 65535
          self.z.close()
      
      when it is given such old timestamps. This fixes this by silently
      clamping the date to 1980.
      381f1312
  4. Sep 17, 2010
  5. Sep 16, 2010
  6. Sep 12, 2010
  7. Sep 16, 2010
  8. Sep 15, 2010
  9. Sep 16, 2010
  10. Sep 15, 2010
  11. Sep 14, 2010
  12. Sep 15, 2010
    • Matt Mackall's avatar
      merge with crew · a424fa60
      Matt Mackall authored
      a424fa60
    • Sune Foldager's avatar
      clone: only use stream when we understand the revlog format · d7fff529
      Sune Foldager authored
      This patch fixes issues with stream cloning in the presense of parentdelta,
      lwcopy and similar additions that change the interpretation of the revlog
      format, or the format itself.
      
      Currently, the stream capability is sent like this:
      stream=<version of changelog>
      
      But the client doesn't actually check the version number; also, it only checks
      the changelog and it doesn't capture the interpretation-changes and
      flag-changes in parentdelta and lwcopy.
      
      This patch removes the 'stream' capability whenever we use a non-basic revlog
      format, to prevent old clients from receiving incorrect data. In those cases,
      a new capability called 'streamreqs' is added instead. Instead of a revlog
      version, it comes with a list of revlog-format relevant requirements, which
      are a subset of the repository requirements, excluding things that are not
      relevant for stream.
      
      New clients use this to determine whether or not they can stream. Old clients
      only look for the 'stream' capability, as always. New servers will still send
      this when serving old repositories.
      d7fff529
    • Sune Foldager's avatar
  13. Sep 14, 2010
  14. Sep 13, 2010
Loading