Defect #37659
openCannot access mercurial repositories
0%
Description
- FreeBSD9.1, Redmine 2.8.9, Ruby 2.1.8, Rails 3.2.22.1, thin 1.6.4, Mercurial 3.7.2, Sqlite 3.10.2
- FreeBSD13.1, Redmine 5.0.2, Ruby 3.0.4, Rails 6.1.6, thin 1.8.1, Mercurial 6.1.4, Sqlite 3.39.2
After copying attachments and the database file and running db:migrate
without errors all looks good,
with one exception:
I cannot access any existing or cloned Mercurial repository in either an existing or a new project.
Redmine always responds with 'The entry or revision was not found in the repository'.
Files
Updated by Norbert Koch over 2 years ago
Updated by Norbert Koch over 2 years ago
- File redminehelper.py.patch redminehelper.py.patch added
- File redminehelper.py redminehelper.py added
- Status changed from New to Resolved
I've run 2to3.9 over redminehelper.py from redmine 5.0.2 and then applied the patch from #33784 with some manual work. This works for me afaics, but I did not yet test it in all details.
Updated by Norbert Koch over 2 years ago
Some problems remaining in detail view.
Updated by Norbert Koch over 2 years ago
- File redminehelper.py.patch redminehelper.py.patch added
- File redminehelper.py redminehelper.py added
more testing & corrections
Updated by Michael Ssssssno over 2 years ago
thank you
With this it seems to work for me too (on ubuntu 22.04 server with redmine 5.0.2 and mercurial 6.1.1).
I could not run the patch but I just copied your file redminehelper.py into the directory lib/redmine/scm/adapters/mercurial/
Updated by Michael Ssssssno over 2 years ago
I had another small problem with one of the reprositories (1 of 20)
The apache error message when accessing the repositry page in redmine was:
App 24173 output: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 23: invalid start byte
After the hint here
https://stackoverflow.com/questions/19699367/for-line-in-results-in-unicodedecodeerror-utf-8-codec-cant-decode-byte
I replaced 'utf-8' in the redminehelper.py file with 'ISO-8859-1' and everything worked (including the previous repos).