comparison mercurial/commands.py @ 11007:a0102da324ab stable

commands: revised documentation of 'default' and 'default-push' This patch was a collaborative effort between faheem, mg, timeless and ilowe.
author Faheem Mitha <faheem@email.unc.edu>
date Tue, 27 Apr 2010 00:44:06 +0530
parents 61cd6653f846
children af2a58ab4182 49e14ec67144
comparison
equal deleted inserted replaced
10990:bb377a311109 11007:a0102da324ab
2347 show definition of all available names. 2347 show definition of all available names.
2348 2348
2349 Path names are defined in the [paths] section of /etc/mercurial/hgrc 2349 Path names are defined in the [paths] section of /etc/mercurial/hgrc
2350 and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too. 2350 and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too.
2351 2351
2352 The names 'default' and 'default-push' have a special meaning. 2352 The path names ``default`` and ``default-push`` have a special
2353 They are the locations used when pulling and pushing respectively 2353 meaning. When performing a push or pull operation, they are used
2354 unless a location is specified. When cloning a repository, the 2354 as fallbacks if no location is specified on the command-line.
2355 clone source is written as 'default' in .hg/hgrc. 2355 When ``default-push`` is set, it will be used for push and
2356 ``default`` will be used for pull; otherwise ``default`` is used
2357 as the fallback for both. When cloning a repository, the clone
2358 source is written as ``default`` in ``.hg/hgrc``. Note that
2359 ``default`` and ``default-push`` apply to all inbound (e.g. ``hg
2360 incoming``) and outbound (e.g. ``hg outgoing``, ``hg email`` and
2361 ``hg bundle``) operations.
2356 2362
2357 See 'hg help urls' for more information. 2363 See 'hg help urls' for more information.
2358 """ 2364 """
2359 if search: 2365 if search:
2360 for name, path in ui.configitems("paths"): 2366 for name, path in ui.configitems("paths"):