Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file.

Added by Joshua Enfield over 9 years ago

This happens with pretty much any link from repository/changes/. I get "The entry does not exist or can not be annotated." With the annotate link. I haven't tested with other files, but this is with a .sh shell script file with about 6 revisions. Any idea what might be going on here?

Replies (10)

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by Joshua Enfield over 9 years ago

I have more information. I checked the error logs, and the following is triggered:
abort: /var/vcroot/link/vm-linux/STACK.sh not under root

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by Joshua Enfield over 9 years ago

If I run an hg update on the Repository folder on the server it works, but this could be tricky with the named branches and such. Redmine appears to reference the folder the Repository resides in rather than the repository. I could add a hook into Redmine to trigger an hg update when the changes action is triggered, but this is less than ideal, and doesn't really function well for anything but the default trunk. :S

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by David Oliver about 9 years ago

I'm also having issues viewing and annotating, etc., in the repository view. Updating the working directory helped, but didn't sort everything out for me.

Redmine seems to be aware of changesets in certain pages, such as View and Annotate, but clicking on a revision number in Annotate gives "The entry does not exist or can not be annotated." Also, the History view doesn't show anything.

Let me know if I should supply any information in particular.

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by David Oliver about 9 years ago

Thanks for referring me to that issue.

Not being a programmer or experienced Redmine user myself, I'm thinking that this area is one which just needs patience. It would be nice to be able to use more of Mercurial's repository area, such as viewing history and matching hg email addresses to Redmine users, but I gather these aren't things that are relatively simple fixes for at this stage?

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by Toshi MARUYAMA about 9 years ago

Did you strip revisions?
Redmine stores revision numbers on database.
This causes problem.
Please see #3724.

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by David Oliver about 9 years ago

No, I haven't stripped revisions.

I'm attaching a few screenshots to show what I'm getting. Thanks.

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by Toshi MARUYAMA about 9 years ago

I don't know what problem is.
Current redmine mercurial adapter has many problems.
Could you try Yuya's MQ?

http://bitbucket.org/yuja/redmine-mq-issue4455/src

You can qclone my and Yuya's repository with following command.

$ hg qclone http://bitbucket.org/marutosi/redmine-hgsubversion-1.0-clean \
    --patches http://bitbucket.org/yuja/redmine-mq-issue4455/.hg/patches/

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by David Oliver about 9 years ago

Thanks for the reply.

I'm not experienced with patches. What would be the risks involved with applying them to my installation of Redmine?

RE: Mercurial - "The entry or revision was not found in the repository." Only when trying to view, annotate, or download a specific file. - Added by Toshi MARUYAMA about 9 years ago

Yuya's MQ never change database schema, so we don't need to migrate db.
But, I recommend you to backup database and files/ directory etc.

(1-10/10)