Sequence contains no elements error while browsing repository
Hi!
I've created project, repository and pushed existing repository into it. Everything is ok. Then I've created another one project, repository and pushed existing repository of the other project into it (either just 1 changeset or several hundreds in different experiments). Now I can't access source and branches of the repository in web panel, this URLs throws error:
https://*****/projects/ProjectName/repositories/RepoName/source/files
https://*****/projects/ProjectName/repositories/RepoName/source/branches
But everything is ok with commmits and tags pages.
Repository is fully operable via hg commands - I can clone it and push more changesets
Error message and stacktrace:
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.First(IEnumerable`1 source) +498
HgLab.Areas.Project.Controllers.<>c__DisplayClass20.<GetMainlineLatestChangeset>b__1d(String branchName) in c:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:193
HgLab.Areas.Project.Controllers.RepositoryController.GetMainlineLatestChangeset(Repository repository, HgRepository hgRepository) in c:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:199
HgLab.Areas.Project.Controllers.RepositoryController.Files(Repository repository, String changeset, String path) in c:\Projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:72
lambda_method(Closure , ControllerBase , Object[] ) +236
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +248
.....................................................
Thanks!
Regards,
Alex.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Anton Gogolev on 07 Aug, 2013 03:13 PM
Alex,
What does
hg branches
command show for the repository you cannot browse in HgLab?2 Posted by Alex Omgovitski... on 08 Aug, 2013 08:31 AM
Hi!
http://screencast.com/t/TNZJe3NQc
Support Staff 3 Posted by Anton Gogolev on 08 Aug, 2013 01:04 PM
Alex,
That's a subtle one. HgLab expects that any given repository will always contain branch
default
, which is not the case in your situation.I'll be fixing this in an upcoming release. For now you can either commit something to branch
default
or change the value ofMainlineBranch
column inRepository
table of HgLab database to/EventQ
.4 Posted by Alex on 09 Aug, 2013 08:24 AM
Thanks!
I'll add a default branch for now.
5 Posted by Alex on 09 Aug, 2013 08:27 AM
Or change MainlineBranch - i think it's better way :)
This repository was initially cloned from SVN with default branch name explicitly specified.
Support Staff 6 Posted by Anton Gogolev on 09 Aug, 2013 08:31 AM
Alex,
Either will do. That's already fixed and will be available in the upcoming
release.