Changing repostories encoding kills hglab

Moti's Avatar

Moti

23 Jan, 2017 07:51 AM

Hi,

I fresh installed hglab, create a repository, did some commits and pushes. Everything worked.

Then went to settings and changed the settings and changed repository encoding to unicode 1200.

After that everyting crushes, and going to dashboard shows the attached message.

Moti

  1. 1 Posted by Moti on 23 Jan, 2017 12:13 PM

    Moti's Avatar

    Ran some more tests. There is no need to create repositories. Just install hglab, go and change the encoding and it kills the product.
    If it isn't dead immedaitly after the change, preform an iisreset and it will die.

  2. 2 Posted by Moti on 23 Jan, 2017 12:18 PM

    Moti's Avatar

    Here is the entire stacktrace:

    ''' System.Net.ProtocolViolationException: Operation is not valid due to the current state of the object.
    at HgRpcSharp.HgRpcHandler..ctor(String hgExeFullPath, String encoding) at HgRpcSharp.HgRpcServer.<>c__DisplayClass2.<.ctor>b__0() at HgRpcSharp.ResourcePool1.AcquireResource(TimeSpan timout) at HgRpcSharp.HgRpcServer.GetHgRpcServerInformation() at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Lazy1.get_Value() at HgRpcSharp.HgRpcServer.get_Information() at HgLab.Core.Framework.Web.HgLabControllerBase.GetAmbience() in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 200 at HgLab.Core.Framework.Web.HgLabControllerBase.OnResultExecuting(ResultExecutingContext filterContext) in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 141 at System.Web.Mvc.Controller.System.Web.Mvc.IResultFilter.OnResultExecuting(ResultExecutingContext filterContext) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.b__1b() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) at System.Web.Mvc.Controller.ExecuteCore() at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) at HgLab.Core.Framework.Web.HgLabControllerBase.Execute(RequestContext requestContext) in c:\Projects\hglab\src\HgLab.Core\Framework\Web\HgLabControllerBase.cs:line 100 at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass81.b__7(IAsyncResult ) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.<>c_DisplayClasse.b__d() at System.Web.Mvc.SecurityUtil.b__0(Action f) at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) '''

  3. Support Staff 3 Posted by Anton Gogolev on 24 Jan, 2017 11:00 AM

    Anton Gogolev's Avatar

    Moti,

    That's the most bothersome aspect of Mercurial on Windows (and there's no
    fault of Mercurial here):
    https://www.mercurial-scm.org/wiki/CharacterEncodingOnWindows .

    Essentially, there's no easy or clean way ot of this. This setting is
    something that an administrator will have to configure during installation,
    not during normal operation.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • hglab.png 80.6 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

18 Feb, 2019 09:20 AM
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