Wayne Werner
Wayne Werner

Reputation: 51837

How do I list configured urls in Mercurial?

Obviously I can do something like cat .hg/hgrc on *nix to see the paths I have configured, but is there a built-in Mercurial command? A Google search for "hg list configured urls" didn't seem to have any useful results, and neither does hg help urls (that I noticed).

Is there any command that will display the urls I have configured?

Upvotes: 2

Views: 74

Answers (2)

Ludovic Chabant
Ludovic Chabant

Reputation: 1513

The correct answer is indeed hg paths as smooth reggae wrote, but so you know, there's also the showconfig command, which will show you any section(s) of the combined config files.

There's not much point in using hg showconfig paths, which is longer to type, but it's useful for quickly checking the value of other configuration settings.

Upvotes: 1

smooth reggae
smooth reggae

Reputation: 2219

hg paths is what you are looking for. hg help paths will give you more information.

Upvotes: 4

Related Questions