Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mercurial-devel mercurial-devel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • mercurialmercurial
  • mercurial-develmercurial-devel
  • Merge requests
  • !399

debugshell: allow commands to be specified as a CLI argument

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Arun Kulshreshtha requested to merge topic/default/debugshell-command into branch/default Jan 19, 2023
  • Overview 5
  • Commits 1
  • Pipelines 8
  • Changes 3

Add a --command option to hg debugshell that allows the user to pass in Python code to evaluate directly from the command line. This was inspired by the --command option present in Facebook's Sapling fork of Mercurial, which in turn was inspired by the -c option of the Python interpreter itself. It is particularly useful for writing tests, especially for getting visibility into things that otherwise aren't exposed via debug commands.

Edited Jan 20, 2023 by Arun Kulshreshtha
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: topic/default/debugshell-command