Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-2207

Mercurial hooks depending on PYTHONPATH do not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 1.8.1
    • Mercurial
    • None
    • Severity 2 - Major

    Description

      Hello!

      We use a few custom hooks to validate stuff on commit. Those hooks need to load some Python libraries listed in PYTHONPATH. When using the command line hg everything works fine, but when trying to commit from SourceTree I get errors about Python being unable to load the modules.

      I tried running SourceTree from a shell session that has the proper value in PYTHONPATH but it doesn't work better. I also tried setting PYTHONPATH through launchctl (with a logout+login) but I get the same error. I'm guessing that SourceTree somehows completely overrides the PYTHONPATH when invoking hg.

      Thanks!

      Martin

      Attachments

        Activity

          People

            Unassigned Unassigned
            6b416bc35e7f Martin Laporte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: