mercurialdvcstortoisehgmercurial-extension

'20-byte hash required' message on Mercurial commit


I was experiencing an issue with a repository that would error with a 'No Node' message when viewing in Tortoise Workbench. So, I upgraded to TortoiseHg 2.5.1 and am now receiving '20-byte hash required' when i try to commit. I was able to commit before. I couldn't find anything about this message on the web. Any ideas what it means?


Solution

  • Turns out there was a line feed in the branch name. Not sure how this happened though. This confused Mercurial's branch cache, causing this error. In Mercurial 2.4, this is explicitly disallowed.

    For more info, see link on Mercurial bug tracker - https://bz.mercurial-scm.org/show_bug.cgi?id=3694