Skip to content
Snippets Groups Projects
  1. Jun 15, 2010
    • 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
  2. Jun 16, 2010
  3. Jun 10, 2010
  4. Jun 14, 2010
  5. Jun 15, 2010
  6. Jun 13, 2010
  7. Jun 15, 2010
  8. Jun 14, 2010
  9. Jun 15, 2010
  10. Jun 14, 2010
  11. Jun 11, 2010
  12. Jun 10, 2010
  13. Jun 09, 2010
  14. Jun 10, 2010
    • Chad Dombrova's avatar
      provide pre- and post- hooks with parsed command line arguments. · 713ae78b
      Chad Dombrova authored
      python hooks are passed two new keyword arguments:
      - opts: a dict of options; unsepcified options are set to their default
      - pats: a list of arguments
      
      shell hooks receive two new variables containing string representations
      of the above data:
      - $HG_OPTS
      - $HG_PATS
      
      for example, the opts and pats for 'hg -f v1.1' would be:
      {'force': True, 'message': '', 'rev': '', 'user': '', 'date': '', 'local': None, 'remove': None, 'mq': None}
      ['v1.1']
      713ae78b
  15. Jun 09, 2010
  16. Jun 07, 2010
  17. Jun 10, 2010
Loading