Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10724 closed defect (worksforme)

Unsupported version control system "hg"

Reported by: Mr.troll <troll@…> 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)

trac.log (67.7 KB ) - added by Mr.troll <troll@…> 13 years ago.
trac.log

Download all attachments as: .zip

Change History (6)

comment:1 by Christian Boos, 13 years ago

What's in the trac.log? (at DEBUG level)

by Mr.troll <troll@…>, 13 years ago

Attachment: trac.log added

trac.log

comment:2 by Christian Boos, 13 years ago

Resolution: worksforme
Status: newclosed

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:3 by Mr.troll <troll@…>, 13 years ago

Will the reinstalling trac fix this problem?

comment:4 by Christian Boos, 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 Mr.troll <troll@…>, 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()
.


Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.