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.
testing/geckodriverbashhg clone https://hg-edge.mozilla.org/mozilla-central
testing/geckodriver directory:
bashcd mozilla-central/testing/geckodriver
hg sparse (if supported)If your Mercurial version supports sparse checkouts, you can clone only the testing/geckodriver directory:
bashhg clone --sparse https://hg-edge.mozilla.org/mozilla-central cd mozilla-central echo "testing/geckodriver" >> .hg/sparse hg update
This will download only the files in testing/geckodriver.
If you only need the file (not the repository), you can download it directly from the web interface:
wget or curl to download the raw file:
bashwget https://hg-edge.mozilla.org/mozilla-central/raw-file/default/testing/geckodriver/<filename>
Vibe can make mistakes. Check answers. Learn more