prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  HgCommitBear: Make asciinema
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `bears/vcs/mercurial/HgCommitBear.py`
  Content:
  ```
  1 import os
  2 import shutil
  3 
  4 from bears.vcs.CommitBear import _CommitBear
  5 from coala_utils.ContextManagers import change_directory
  6 from coalib.misc.Shell import run_shell_command
  7 
  8 
  9 class HgCommitBear(_CommitBear):
  10     LANGUAGES = {'Hg'}
  11     CAN_DETECT = {'Formatting'}
  12 
  13     @classmethod
  14     def check_prerequisites(cls):
  15         if shutil.which('hg') is None:
  16             return 'hg is not installed.'
  17         else:
  18             return True
  19 
  20     def get_remotes():
  21         remotes, _ = run_shell_command('hg paths')
  22         return remotes
  23 
  24     def get_head_commit(self):
  25         with change_directory(self.get_config_dir() or os.getcwd()):
  26             return run_shell_command('hg log -l 1 --template "{desc}"')
  27
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/bears/vcs/mercurial/HgCommitBear.py b/bears/vcs/mercurial/HgCommitBear.py
  --- a/bears/vcs/mercurial/HgCommitBear.py
  +++ b/bears/vcs/mercurial/HgCommitBear.py
  @@ -9,6 +9,7 @@
   class HgCommitBear(_CommitBear):
       LANGUAGES = {'Hg'}
       CAN_DETECT = {'Formatting'}
  +    ASCIINEMA_URL = 'https://asciinema.org/a/3Kfn2EDjYLmsbPoL7lRuLyhlN'
   
       @classmethod
       def check_prerequisites(cls):
  
verification_info: {"golden_diff": "diff --git a/bears/vcs/mercurial/HgCommitBear.py b/bears/vcs/mercurial/HgCommitBear.py\n--- a/bears/vcs/mercurial/HgCommitBear.py\n+++ b/bears/vcs/mercurial/HgCommitBear.py\n@@ -9,6 +9,7 @@\n class HgCommitBear(_CommitBear):\n     LANGUAGES = {'Hg'}\n     CAN_DETECT = {'Formatting'}\n+    ASCIINEMA_URL = 'https://asciinema.org/a/3Kfn2EDjYLmsbPoL7lRuLyhlN'\n \n     @classmethod\n     def check_prerequisites(cls):\n", "issue": "HgCommitBear: Make asciinema\n\n", "before_files": [{"content": "import os\nimport shutil\n\nfrom bears.vcs.CommitBear import _CommitBear\nfrom coala_utils.ContextManagers import change_directory\nfrom coalib.misc.Shell import run_shell_command\n\n\nclass HgCommitBear(_CommitBear):\n    LANGUAGES = {'Hg'}\n    CAN_DETECT = {'Formatting'}\n\n    @classmethod\n    def check_prerequisites(cls):\n        if shutil.which('hg') is None:\n            return 'hg is not installed.'\n        else:\n            return True\n\n    def get_remotes():\n        remotes, _ = run_shell_command('hg paths')\n        return remotes\n\n    def get_head_commit(self):\n        with change_directory(self.get_config_dir() or os.getcwd()):\n            return run_shell_command('hg log -l 1 --template \"{desc}\"')\n", "path": "bears/vcs/mercurial/HgCommitBear.py"}], "after_files": [{"content": "import os\nimport shutil\n\nfrom bears.vcs.CommitBear import _CommitBear\nfrom coala_utils.ContextManagers import change_directory\nfrom coalib.misc.Shell import run_shell_command\n\n\nclass HgCommitBear(_CommitBear):\n    LANGUAGES = {'Hg'}\n    CAN_DETECT = {'Formatting'}\n    ASCIINEMA_URL = 'https://asciinema.org/a/3Kfn2EDjYLmsbPoL7lRuLyhlN'\n\n    @classmethod\n    def check_prerequisites(cls):\n        if shutil.which('hg') is None:\n            return 'hg is not installed.'\n        else:\n            return True\n\n    def get_remotes():\n        remotes, _ = run_shell_command('hg paths')\n        return remotes\n\n    def get_head_commit(self):\n        with change_directory(self.get_config_dir() or os.getcwd()):\n            return run_shell_command('hg log -l 1 --template \"{desc}\"')\n", "path": "bears/vcs/mercurial/HgCommitBear.py"}]}