#10724 closed defect (worksforme)
Unsupported version control system "hg"
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/mercurial | Version: | 0.12.3 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I use: Trac 0.12.3dev-r10552, Python 2.7 Apache/2.2.17 Fedora 14 hg 2.2.2
After i upgraded hg to version 2.2.2 via
easy_install -U mercurial
trac-mercurial plugin crash. Then i setup latest svn plugin version from http://svn.edgewall.com/repos/trac/plugins/0.12/mercurial-plugin
So, Now i have a warning Can't synchronize with repository "(default)" Unsupported version control system "hg" Check that the Python support libraries for hg are correctly installed."
i tried to downgrade version to
easy_install -U mercurial==2.0
or even 1.7 (with apache restart) nothing happened.
Attachments (1)
Change History (6)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
See attachment/ticket/10724/trac.log, you have a conflict marker in the file.
Hope it's not in our source tree… no, must be an InstallationIssue.
Note that if you're using a recent version of Mercurial (in your case 2.2.2), you'll get some trouble with the file log view (#10719). This will hopefully get fixed soon.
comment:4 by , 13 years ago
Not Trac, but the TracMercurial plugin. If you install it from the Subversion checkout as you did, make sure you don't have pending changes or conflicts.
Doing a svn diff > my_stuff.diff; svn revert -R .
should do the trick for making sure you have a clean version.
comment:5 by , 13 years ago
Really thanks Christian, it helps me. I am a noob in python (and in svn, thats why i use TracMercurial plugin =) ), somehow there was my early changes on backend.py, based on solution on bug #7217, but charset now working fine without it. So my bug is fully resolved.
Here is the my_stuff.diff
my_stuff.diff [----] 0 L:[ 1+ 0 1/ 21] *(0 / 586b) 0073 0x049 Index: tracext/hg/backend.py =================================================================== --- tracext/hg/backend.py<----->(revision 11051) +++ tracext/hg/backend.py<----->(working copy) @@ -91,9 +91,15 @@ from mercurial.error import RepoError, LookupError as HgLookupError . # Force local encoding to be non-lossy (#7217) +<<<<<<< .mine + os.environ['HGENCODING'] = 'utf-8'. + encoding.tolocal = str. +............ +======= os.environ['HGENCODING'] = 'utf-8' encoding.tolocal = str ..... +>>>>>>> .r11051 if demandimport: demandimport.disable() .
What's in the trac.log? (at DEBUG level)