2376 """show aliases for remote repositories |
2376 """show aliases for remote repositories |
2377 |
2377 |
2378 Show definition of symbolic path name NAME. If no name is given, |
2378 Show definition of symbolic path name NAME. If no name is given, |
2379 show definition of all available names. |
2379 show definition of all available names. |
2380 |
2380 |
2381 Path names are defined in the [paths] section of /etc/mercurial/hgrc |
2381 Path names are defined in the [paths] section of |
2382 and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. |
2382 ``/etc/mercurial/hgrc`` and ``$HOME/.hgrc``. If run inside a |
|
2383 repository, ``.hg/hgrc`` is used, too. |
2383 |
2384 |
2384 The path names ``default`` and ``default-push`` have a special |
2385 The path names ``default`` and ``default-push`` have a special |
2385 meaning. When performing a push or pull operation, they are used |
2386 meaning. When performing a push or pull operation, they are used |
2386 as fallbacks if no location is specified on the command-line. |
2387 as fallbacks if no location is specified on the command-line. |
2387 When ``default-push`` is set, it will be used for push and |
2388 When ``default-push`` is set, it will be used for push and |
2388 ``default`` will be used for pull; otherwise ``default`` is used |
2389 ``default`` will be used for pull; otherwise ``default`` is used |
2389 as the fallback for both. When cloning a repository, the clone |
2390 as the fallback for both. When cloning a repository, the clone |
2390 source is written as ``default`` in ``.hg/hgrc``. Note that |
2391 source is written as ``default`` in ``.hg/hgrc``. Note that |
2391 ``default`` and ``default-push`` apply to all inbound (e.g. ``hg |
2392 ``default`` and ``default-push`` apply to all inbound (e.g. |
2392 incoming``) and outbound (e.g. ``hg outgoing``, ``hg email`` and |
2393 :hg:`incoming`) and outbound (e.g. :hg:`outgoing`, :hg:`email` and |
2393 ``hg bundle``) operations. |
2394 :hg:`bundle`) operations. |
2394 |
2395 |
2395 See :hg:`help urls` for more information. |
2396 See :hg:`help urls` for more information. |
2396 """ |
2397 """ |
2397 if search: |
2398 if search: |
2398 for name, path in ui.configitems("paths"): |
2399 for name, path in ui.configitems("paths"): |