[PATCH 0 of 4 V4] demandimport: improve demandimport for extensions/external libraries

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Fri Oct 4 16:19:04 UTC 2013


This patch series improves demandimport for extensions/external libraries.

Difference betwen V3 and V4:

  - add patch #2, which adds "py3k" feature to hghave
  - make tests in patch #3 and #4 runnable with Python 3.x


This series also resolves problems of some 3rd party extensions, for
example:

  - reported for mercurial_keyring (fixed by patch #3)

    - https://bitbucket.org/Mekk/mercurial_keyring/issue/31/failed-to-import-extension

      I confirmed that patch #3 fixes this issue with sources of
      python-keyring-lib 3.0.1: recent python-keyring-lib itself
      includes changes to fix this issue, in fact.

        https://bitbucket.org/kang/python-keyring-lib/issue/112/after-upgrading-to-the-latest-version-it

  - reported for hgsubversion (fixed by patch #4)

    - https://bitbucket.org/durin42/hgsubversion/issue/399/relative-import-should-be-used
    - https://bitbucket.org/durin42/hgsubversion/issue/402/getting-abort-no-module-named-hgsubversion


More information about the Mercurial-devel mailing list