Notices: This section not yet converted to new layout. Download stats are rolling back out.



Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package skips automatic verification:

In order to install correctly on package verifier, this package needs to be installed:, which requires a reboot of the server, therefore exempting from testing.

This package was approved as a trusted package on 7/9/2019.

Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.

To install Mercurial, run the following command from the command line or from PowerShell:

C:\> choco install hg

To upgrade Mercurial, run the following command from the command line or from PowerShell:

C:\> choco upgrade hg


  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    $packageArgs = @{
      packageName    = 'hg'
      installerType  = 'exe'
      url            = ''
      url64          = ''
      checksum       = 'ac58482188cb5351d4777e449d17f36b49099a44db6ce7b4109aa6cae00dbc3c'
      checksumType   = 'sha256'
      checksum64     = 'bdeaa6a35bb975797b87722d01f186e8dca52c3cebcf37c96995af99cd0fcd04'
      checksumType64 = 'sha256'
      silentArgs     = '/VERYSILENT'
      validExitCodes = @(0, 3010)
    Install-ChocolateyPackage @packageArgs
    try {
        $regEntries = @(Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\ | ? { $_.GetValue('DisplayName') -like 'Mercurial*' })
        foreach ($regEntry in $regEntries) {
            $installLocation = $regEntry.GetValue('InstallLocation')
            if ($installLocation) {
                Install-ChocolateyPath $installLocation
    } catch {
        throw $_

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.


Package Maintainer(s)

Software Author(s)

  • Matt Mackall


Release Notes

Version History

Version Downloads Last updated Status
Mercurial 5.0 2996 Monday, May 13, 2019 approved
Mercurial 4.9.1 4678 Friday, March 22, 2019 approved
Mercurial 4.9 1892 Monday, February 4, 2019 approved
Mercurial 4.8.2 895 Wednesday, January 23, 2019 approved
Mercurial 4.8.1 62 Tuesday, December 11, 2018 approved
Mercurial 4.6.1 5491 Friday, June 8, 2018 approved
Show More

Discussion for the Mercurial Package

Ground rules:

  • This discussion is only about Mercurial and the Mercurial package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Mercurial, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus uses cookies to enhance the user experience of the site.