Skip to content
Snippets Groups Projects
  1. Jun 19, 2010
  2. Apr 07, 2010
  3. Jun 17, 2010
  4. Jun 19, 2010
  5. Jun 17, 2010
  6. Jun 18, 2010
  7. Jun 17, 2010
  8. Jun 18, 2010
  9. Jun 17, 2010
  10. Jun 16, 2010
  11. Jun 17, 2010
  12. Jun 15, 2010
    • Renato Cunha's avatar
      bdiff.c: Added support for py3k. · 0044193a
      Renato Cunha authored
      This patch adds support for py3k in bdiff.c. This is accomplished by including
      a header file responsible for abstracting the API differences between python 2
      and python 3.
      0044193a
    • Renato Cunha's avatar
      diffhelpers.c: Added support for py3k. · f5010303
      Renato Cunha authored
      This patch adds support for py3k in diffhelpers.c. This is accomplished by
      including a header file responsible for abstracting the API differences between
      python 2 and python 3.
      f5010303
    • Renato Cunha's avatar
      base85.c: Added support for py3k. · f42ef949
      Renato Cunha authored
      This patch adds support for py3k in base85.c. This is accomplished by including
      a header file responsible for abstracting the API differences between python 2
      and python 3.
      f42ef949
    • Renato Cunha's avatar
      parsers.c: Added support for py3k. · 3de3d670
      Renato Cunha authored
      This patch adds support for py3k in parsers.c. This is accomplished by including
      a header file responsible for abstracting the API differences between python 2
      and python 3.
      3de3d670
    • Renato Cunha's avatar
      mpatch.c: Added preliminary support for py3k. · 2ac98313
      Renato Cunha authored
      This is done by including the util.h header file, that defines appropriate
      macros according to the current python version.
      2ac98313
    • Renato Cunha's avatar
      osutil.c: Support for py3k added. · 4eaacccb
      Renato Cunha authored
      This patch adds support for py3k in osutil.c. This is accomplished by including
      a header file responsible for abstracting the API differences between python 2
      and python 3.
      
      listdir_stat_type is also changed in the following way: A previous call to
      PyObject_HEAD_INIT is substituted to a call to PyVarObject_HEAD_INIT, which
      makes the object buildable in both python 2.x and 3.x without weird warnings.
      
      After testing on windows, some modifications were also made in the posixfile
      function, as it calls PyFile_FromFile and PyFile_SetBufSize, which are gone in
      py3k. In py3k the PyFile_* API is, actually a wrapper over the io module, and
      code has been adapted accordingly to fit py3k.
      4eaacccb
    • Renato Cunha's avatar
      util.h: Utility macros for handling different Python APIs. · 4494fb02
      Renato Cunha authored
      If we are in py3k, a IS_PY3K symbol is defined. Apart from that, byte strings
      use the API defined in Python 2.6+ (_?PyBytes_.*). For Python < 2.6, the bytes
      API is defined accordingly for mercurial usage (shameless copy from
      bytesobject.h from Python's code). Some macros were backported from 2.6, as
      inspired by rPath's pycompat.h.
      4494fb02
  13. Jun 16, 2010
  14. Jun 10, 2010
Loading