Mercurial > hg
view tests/test-hgrc.out @ 11948:88d4911930bf
contrib/setup3k.py: added script to build hg with py3k
This patch implements a script that inherits most of its functionality from
hg's setup.py and adds support to calling 2to3 during invocation with python3.
The motivation of having this script around is twofold:
1) It enables py3k crazies to test mercurial in py3k and, hopefully, patch it
more easily, so it can improve the py3k support to eventually run there.
2) Being separated from the main setup.py eliminates the need to make hg's
setup.py even more cluttered, and enables "independent" development until
the port is done.
Some considerations about the structure of this patch:
Mercurial already overrides the behavior of build_py, this patch tweaks it a bit
more to add support to call 2to3 with a custom fixer* location for Mercurial.
There is also a need of having the core C modules built *before* the
translation process starts, otherwise 2to3 will think those are global modules.
* A fixer is a python module that transforms python 2.x code in python 3.x
code.
author | Renato Cunha <renatoc@gmail.com> |
---|---|
date | Tue, 03 Aug 2010 13:18:16 -0300 |
parents | 037d910734de |
children |
line wrap: on
line source
hg: parse error at $HGRCPATH:1: invalid updating to branch default 0 files updated, 0 files merged, 0 files removed, 0 files unresolved [paths] default = .../foo%bar default = .../foo%bar bundle.mainreporoot=.../foobar paths.default=.../foo%bar hg: parse error at $HGRCPATH:2: x = y foo.bar=a\nb\nc\nde\nfg foo.baz=bif cb hg: parse error at $HGRCPATH:1: cannot include /path/to/nowhere/no-such-file (No such file or directory) % username expansion John Doe ui.username=$FAKEUSER % customized hgrc read config from: .../.hgrc .../.hgrc:13: alias.log=log -g .../.hgrc:11: defaults.identify=-n .../.hgrc:2: ui.debug=true .../.hgrc:3: ui.fallbackencoding=ASCII .../.hgrc:4: ui.quiet=true .../.hgrc:5: ui.slash=true .../.hgrc:6: ui.traceback=true .../.hgrc:7: ui.verbose=true .../.hgrc:8: ui.style=~/.hgstyle .../.hgrc:9: ui.logtemplate={node} % plain hgrc read config from: .../.hgrc none: ui.traceback=True none: ui.verbose=False none: ui.debug=True none: ui.quiet=False