HG(PATHS)
β¨ NAME β¨
hg paths β show aliases for remote repositories π¦
πΈ SYNOPSIS πΈ
hg paths [NAME]
π DESCRIPTION π
okay so bestie, this command shows you the definition of the symbolic path name NAME. No name? No problem β it shows you the definition of all the available names. all of them. the whole roster. π
The option -q / --quiet is the introvert of the group: when you're searching for NAME, it suppresses all output, and when you're listing every definition, it shows you only the path names. just the names. nothing else. lowkey iconic.
So where do these path names even live? They're defined in the [paths] section of your configuration file, and also in /etc/mercurial/hgrc. And if you run this inside a repository, .hg/hgrc gets used too. β¨
Now, the path names default and default-push? They have special meaning, bestie. When you're doing a push or pull operation, they act as the fallbacks if you didn't specify a location on the command-line. When default-push is set, it gets used for push and default gets used for pull; otherwise default is the fallback for both. And when you clone a repository, the clone source gets written as default in .hg/hgrc. no cap. π
β οΈ heads up:defaultanddefault-pushapply to all inbound (e.g.hg incoming) and outbound (e.g.hg outgoing,hg emailandhg bundle) operations. every single one.
See hg help urls for more info. π«Ά
π Template
The following keywords are supported. See also hg help templates.
nameβ String. Symbolic name of the path alias.pushurlβ String. URL for push operations.urlβ String. URL or directory path for the other operations.
Returns 0 on success. π
β OPTIONS β
-T,--template <TEMPLATE>β display with template
and that's the whole vibe, bestie π this page signs off as HG(PATHS) β that's the source/version and date right there, literally just the name in the footer, and honestly? it ate. go forth and slay your remote paths ππ
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms