Show More
@@ -2381,10 +2381,16 b' def paths(ui, repo, search=None):' | |||||
2381 | Path names are defined in the [paths] section of /etc/mercurial/hgrc |
|
2381 | Path names are defined in the [paths] section of /etc/mercurial/hgrc | |
2382 | and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. |
|
2382 | and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. | |
2383 |
|
2383 | |||
2384 |
The names |
|
2384 | The path names ``default`` and ``default-push`` have a special | |
2385 | They are the locations used when pulling and pushing respectively |
|
2385 | meaning. When performing a push or pull operation, they are used | |
2386 | unless a location is specified. When cloning a repository, the |
|
2386 | as fallbacks if no location is specified on the command-line. | |
2387 | clone source is written as 'default' in .hg/hgrc. |
|
2387 | When ``default-push`` is set, it will be used for push and | |
|
2388 | ``default`` will be used for pull; otherwise ``default`` is used | |||
|
2389 | as the fallback for both. When cloning a repository, the clone | |||
|
2390 | source is written as ``default`` in ``.hg/hgrc``. Note that | |||
|
2391 | ``default`` and ``default-push`` apply to all inbound (e.g. ``hg | |||
|
2392 | incoming``) and outbound (e.g. ``hg outgoing``, ``hg email`` and | |||
|
2393 | ``hg bundle``) operations. | |||
2388 |
|
2394 | |||
2389 | See :hg:`help urls` for more information. |
|
2395 | See :hg:`help urls` for more information. | |
2390 | """ |
|
2396 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now