Sequence contains no elements error while browsing repository

Alex's Avatar

Alex

07 Aug, 2013 01:18 PM

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.

  1. Support Staff 1 Posted by Anton Gogolev on 07 Aug, 2013 03:13 PM

    Anton Gogolev's Avatar

    Alex,

    What does hg branches command show for the repository you cannot browse in HgLab?

  2. 2 Posted by Alex Omgovitski... on 08 Aug, 2013 08:31 AM

    Alex Omgovitskij's Avatar
  3. Support Staff 3 Posted by Anton Gogolev on 08 Aug, 2013 01:04 PM

    Anton Gogolev's Avatar

    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 of MainlineBranch column in Repository table of HgLab database to /EventQ.

  4. 4 Posted by Alex on 09 Aug, 2013 08:24 AM

    Alex's Avatar

    Thanks!
    I'll add a default branch for now.

  5. 5 Posted by Alex on 09 Aug, 2013 08:27 AM

    Alex's Avatar

    Or change MainlineBranch - i think it's better way :)
    This repository was initially cloned from SVN with default branch name explicitly specified.

  6. Support Staff 6 Posted by Anton Gogolev on 09 Aug, 2013 08:31 AM

    Anton Gogolev's Avatar

    Alex,

    Either will do. That's already fixed and will be available in the upcoming
    release.

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

Recent Discussions

26 Nov, 2018 01:47 PM
16 Nov, 2018 07:51 PM
06 Nov, 2018 04:30 PM
24 Oct, 2018 07:57 AM
20 Jul, 2018 11:07 PM

 

05 Jul, 2018 10:53 AM
27 May, 2018 01:33 AM
14 May, 2018 03:38 PM
04 May, 2018 07:45 AM
28 Feb, 2018 07:08 AM
08 Feb, 2018 03:16 PM