Project

General

Profile

Actions

Defect #6911

closed

Viewing files or diff with mercurial gives an error

Added by Simen Endsjø over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2010-11-16
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I can see all the files and revisions in the repository, but when I try to view files or diffs, I get an error: "The entry or revision was not found in the repository.". The log file just says "500 Internal server error".

The repository is set up on the same disk as redmine, and referenced using "/pathto/repo"

I'm using Mercurial 1.6.4.


Related issues

Related to Redmine - Defect #3743: Mercurial repository path on windows....Closed2009-08-15

Actions
Related to Redmine - Feature #7517: Configurable path of executable for scm adaptersClosedToshi MARUYAMA2011-02-02

Actions
Has duplicate Redmine - Patch #3917: Fix for mercurial diff not workingClosedToshi MARUYAMA2009-09-24

Actions
Actions #1

Updated by Holger Just over 13 years ago

Please provide the information requested in SubmittingBugs, esp. the stack trace from the log file.

Actions #2

Updated by Simen Endsjø over 13 years ago

Btw, everything works when using hgweb.cgi, just not from redmine..

About your application's environment
Ruby version              1.8.7 (i386-mingw32)
RubyGems version          1.3.7
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Application root          E:/webserver/redmine
Environment               development
Database adapter          mysql
Database schema version   0

About your Redmine plugins
Redmine Graphs plugin   0.1.0

I'm using MySql 5.1.50
It's a clean install of redmine, no upgrade.

From production.log:

Processing RepositoriesController#entry (for 192.168.10.36 at 2010-11-17 09:12:09) [GET]
  Parameters: {"action"=>"entry", "id"=>"myproject", "path"=>[".hgignore"], "controller"=>"repositories"}
Rendering template within layouts/base
Completed in 1000ms (View: 47, DB: 16) | 500 Internal Server Error [http://myserver/projects/myproject/repository/entry/.hgignore]

Actions #3

Updated by Simen Endsjø over 13 years ago

Ok, some parts actually works...

Diff for a whole revision works. I'm able to see all the changes in each file. But viewing a file or diffs in a single file fails..

Actions #4

Updated by Toshi MARUYAMA over 13 years ago

Do you use "file://" on Redmine setting?
Please see #3917.

Actions #5

Updated by Simen Endsjø over 13 years ago

No, just /pathto/repo.

Actions #6

Updated by Toshi MARUYAMA over 13 years ago

Try full path on Windows such as "E:/pathto/repo".

Actions #7

Updated by Simen Endsjø over 13 years ago

How can I change this? The field is not editable.. Do I have to change it directly in the database?

Actions #8

Updated by Toshi MARUYAMA over 13 years ago

You can delete repository with "Delete" button.
And re-add repository.

Actions #9

Updated by Simen Endsjø over 13 years ago

Great, thanks! That solved the problems.
I was a bit intimidated by the Delete button :) It's named delete, and links to destroy :)

Actions #10

Updated by Toshi MARUYAMA over 13 years ago

  • Status changed from New to Resolved

My pleasure.

Current redmine mercurial adapter has many problems.
Could you try Yuya's MQ?
Please see http://www.redmine.org/boards/2/topics/15618?r=19227#message-19227

Actions #11

Updated by Toshi MARUYAMA about 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF