{"id":28715705,"url":"https://github.com/fluiddyn/hg-setup","last_synced_at":"2026-02-09T23:32:18.078Z","repository":{"id":268448648,"uuid":"904258168","full_name":"fluiddyn/hg-setup","owner":"fluiddyn","description":"Git mirror  https://foss.heptapod.net/fluiddyn/hg-setup","archived":false,"fork":false,"pushed_at":"2025-06-26T09:42:07.000Z","size":1358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"branch/default","last_synced_at":"2025-09-03T20:54:22.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluiddyn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-16T14:45:28.000Z","updated_at":"2025-06-26T09:42:11.000Z","dependencies_parsed_at":"2024-12-16T21:22:56.612Z","dependency_job_id":"c3b998a4-62a4-45f0-8def-9230703b8f05","html_url":"https://github.com/fluiddyn/hg-setup","commit_stats":null,"previous_names":["fluiddyn/hg-setup"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/fluiddyn/hg-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluiddyn%2Fhg-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluiddyn%2Fhg-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluiddyn%2Fhg-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluiddyn%2Fhg-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluiddyn","download_url":"https://codeload.github.com/fluiddyn/hg-setup/tar.gz/refs/heads/branch/default","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluiddyn%2Fhg-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29285817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-15T02:11:04.128Z","updated_at":"2026-02-09T23:32:18.059Z","avatar_url":"https://github.com/fluiddyn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hg-setup: easily setup Mercurial with a tiny Python application\n\n[![Latest version](https://badge.fury.io/py/hg-setup.svg)](https://pypi.python.org/pypi/hg-setup/)\n![Supported Python versions](https://img.shields.io/pypi/pyversions/hg-setup.svg)\n[![Heptapod CI](https://foss.heptapod.net/fluiddyn/hg-setup/badges/branch/default/pipeline.svg)](https://foss.heptapod.net/fluiddyn/hg-setup/-/pipelines)\n[![Github Actions](https://github.com/fluiddyn/hg-setup/actions/workflows/ci.yml/badge.svg?branch=branch/default)](https://github.com/fluiddyn/hg-setup/actions)\n\nhg-setup can be used to setup [Mercurial]. The main command provided by this package,\n`hg-setup init`, launches a simple Terminal User Interface (TUI) to initialize a\nreasonable user configuration file and shell completion for bash and zsh.\n\nWith [UV], one can even run it without installation with:\n\n```sh\nuvx hg-setup init\n```\n\n## Background\n\n[Mercurial] is a Python application using C and Rust extensions. It is extendable with\nMercurial extensions and two Python packages provide very useful Mercurial extensions\nthat most users should use : [hg-git] (Mercurial extension `hggit`) and [hg-evolve]\n(Mercurial extensions `topic` and `evolve`).\n\nThese things are packaged in 3 PyPI packages (associated with their equivalent\nconda-forge packages): mercurial, hg-git, hg-evolve. Moreover, to use Mercurial\nextensions, one has to write few lines in a configuration file (`~/.hgrc`).\n\nMercurial with hg-git and hg-evolve is great but it is a bit difficult to setup for\nbeginners. hg-setup is there to help people to start with Mercurial and finalize its\ninstallation.\n\n## Install\n\nHere, we give commands to install in two isolated environment on one side Mercurial and\nits more useful extensions ([hg-git] and [hg-evolve]) and on the other side hg-setup.\n\n### From the package on PyPI\n\n- With [pipx]\n\n```sh\npipx install mercurial\npipx inject mercurial hg-git hg-evolve\npipx install hg-setup\n```\n\n- With [UV]\n\n```sh\nuv tool install mercurial --with hg-git --with hg-evolve\nuv tool install hg-setup\n```\n\n### From the conda-forge package\n\n- with [Miniforge] and [conda-app]\n\n```sh\nconda activate base\npip install conda-app\nconda-app install mercurial\nconda-app install hg-setup\n```\n\n- With [Pixi]\n\n```sh\npixi global install mercurial --with hg-git --with hg-evolve\n# and then\npixi global install hg-setup\n```\n\n### From source\n\n```sh\npipx install hg-setup@hg+https://foss.heptapod.net/fluiddyn/hg-setup\n```\n\nFor development installation, see the file [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## User interfaces\n\nThe `~/.hgrc` file and shell completion for bash and zsh can be initialized with a simple\nTerminal User Interface (TUI):\n\n```sh\nhg-setup init\n```\n\nWe can also avoid the TUI with\n\n```sh\nhg-setup init --name \"Alice Lastname\" --email alice.lastname@proton.me --auto\n```\n\nThe shell completion for bash and zsh can be initialized with:\n\n```sh\nhg-setup init-shell-completion bash\nhg-setup init-shell-completion zsh\n```\n\n[conda-app]: https://foss.heptapod.net/fluiddyn/conda-app\n[hg-evolve]: https://foss.heptapod.net/mercurial/evolve\n[hg-git]: https://foss.heptapod.net/mercurial/hg-git\n[mercurial]: https://www.mercurial-scm.org\n[miniforge]: https://github.com/conda-forge/miniforge\n[pipx]: https://pipx.pypa.io\n[pixi]: https://pixi.sh\n[uv]: https://docs.astral.sh/uv/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluiddyn%2Fhg-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluiddyn%2Fhg-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluiddyn%2Fhg-setup/lists"}