﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
9560,"GitPlugin not loading, error in git_fs.py:415",mihail.kotov@…,hvr,"When installing GitPlugin on Trac 0.12:
{{{
easy_install-2.4 hvr-trac-git-plugin-v0.12.0.5-20-g722342e.tar.gz 
Processing hvr-trac-git-plugin-v0.12.0.5-20-g722342e.tar.gz
Running hvr-trac-git-plugin-722342e/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8nGFm-/hvr-trac-git-plugin-722342e/egg-dist-tmp-EGId1i
build/bdist.linux-i686/egg/tracext/git/git_fs.py:415: Warning: 'with' will become a reserved keyword in Python 2.6
  File ""build/bdist.linux-i686/egg/tracext/git/git_fs.py"", line 415
    with self.git.get_historian(old_rev, old_path.strip('/')) as old_historian:
            ^
SyntaxError: invalid syntax

  File ""build/bdist.linux-i686/egg/tracext/git/PyGIT.py"", line 64
    p = self.__pipe(git_cmd, *cmd_args, stdout=PIPE, stderr=PIPE)
                                             ^
SyntaxError: invalid syntax
}}}


On Trac pages:
{{{
Warning: Can't synchronize with repository ""(default)"" (Unsupported version control system ""git"": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.
}}}
Trac log:

{{{
2011-11-28 18:27:00,974 Trac[loader] ERROR: Skipping ""git = tracext.git.git_fs"": 
Traceback (most recent call last):
  File ""build/bdist.linux-i686/egg/trac/loader.py"", line 70, in _load_eggs
    entry.load(require=True)
  File ""/usr/lib/python2.5/site-packages/pkg_resources.py"", line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File ""/usr/lib/python2.5/site-packages/TracGit-0.12.0.5dev-py2.5.egg/tracext/git/git_fs.py"", line 415
     with self.git.get_historian(old_rev, old_path.strip('/')) as old_historian:
             ^
SyntaxError: invalid syntax (git_fs.py, line 415))
}}}




||Trac||	0.12||
||Genshi||	0.6||
||mod_python||	3.3.1||
||MySQL||	server: ""5.0.51a-24+lenny5-log"", client: ""5.0.51a"", thread-safe: 1||
||MySQLdb||	1.2.2||
||Pygments||	0.10||
||Python||	2.5.2 (r252:60911, Jan 24 2010, 15:24:24) [GCC 4.3.2]||
||pytz||	2008c||
||setuptools||	0.6c8||
||Subversion||	1.5.1 (r32289)||
||jQuery:||	1.4.2||",defect,new,high,GitPlugin,blocker,,,andersk@…,0.12
