I would like to get revisions to https://hg-edge.mozilla.org/mozilla-central/file/default/testing/geckodriver/src.
While https://hg-edge.mozilla.org/mozilla-central/log/default/testing/geckodriver/src/android.rs works fine for `src/android.rs`, https://hg-edge.mozilla.org/mozilla-central/log/default/testing/geckodriver/src/ does not work.
May 15, 4:30pm

The issue you're encountering is due to how Mercurial (hg) web interfaces handle directory-level log requests. The URL structure for viewing the revision history of a directory in Mercurial is different from that of a file.

Why the Directory URL Doesn't Work

  • Mercurial's web interface does not directly support a /log/ path for directories in the same way it does for files.
  • The /log/ path is typically used for files (e.g., android.rs), but for directories, you need to use a different approach.

How to Get Revisions for a Directory

To get the revision history for the entire src/ directory in the geckodriver repository, you have a few options:

1. Use the Mercurial Command Line

If you have Mercurial installed locally, you can clone the repository and run:

bash
hg log testing/geckodriver/src/

This will show you the revision history for the src/ directory.

2. Use the Mercurial Web Interface for the Repository Root

You can browse the repository root and navigate to the directory:

  • Mozilla Central Repository Root
  • Navigate to testing/geckodriver/src/ and look for a "History" or "Log" option (if available).

3. Use the JSON API (if available)

Some Mercurial servers provide a JSON API for querying history. For example:

text
https://hg-edge.mozilla.org/mozilla-central/json-log/default/testing/geckodriver/src/

But this is not guaranteed to work for all servers.

4. Use hgweb with a Different Path

Try appending ?style=raw or ?style=json to the directory URL to see if the server provides a raw or JSON output of the history.


Example for src/ Directory

For the src/ directory, try:

  • Browse the directory
  • Look for a "History" or "Revisions" link on the page (if the web interface supports it).

If the web interface does not provide a direct way, the command line is the most reliable method.


Would you like help with a specific revision or change in the src/ directory? Or do you need assistance setting up Mercurial locally?

May 15, 4:30pm

This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.

Vibe can make mistakes. Check answers. Learn more