How to get the remote server hg path?
44,979
hg paths
gives the relationship between each path name and its url.
> hg paths
default = ssh://[email protected]/repo
local = /local/path/to/repo
hg paths <name>
gives the url for the name.
> hg paths default
ssh://[email protected]/repo
> hg paths local
/local/path/to/repo
BTW, to get just the path names:
> hg paths -q
default
local
and hg paths -q <name>
will always result in no output.
![TED](https://i.stack.imgur.com/Xwfmc.jpg?s=256&g=1)
Author by
TED
I write code and code rights for tourty.com, an awesome travel startup that will sort your happiness. FOR FUN: e soccer player, traveler. "If you see scary things, look for the helpers-you'll always see people helping."-Fred Rogers
Updated on October 10, 2020Comments
-
TED over 3 years
I have have created remote repo to push my local changes over ssl. I did
hg showconfig --debug
to find my remote hg path but it messy can some one point me how to exactly find it what is it. -
Admin almost 9 yearsSome added info:
hg paths
(with no parameter) shows all URLs for any symbolic paths (shortcuts) you have defined in~/.hgrc
combined with the paths identified in the/.../<repo>/.hg/hgrc
file if you are in a specific local repository. I am using Mercurial 3.3. Not sure about older versions.