The error occurs because the URL you're using is for a file path in the Mercurial repository, not for cloning the repository itself. Mercurial (hg) does not support cloning a single file or directory directly from a repository. The hg clone command is designed to clone the entire repository, not a subdirectory or file.
How to Get Only testing/geckodriver
Option 1: Clone the Full Repository and Checkout the File