[Patch] clarifying "hg help paths"

Matt Mackall mpm at selenic.com
Wed Jan 21 14:29:22 CST 2009


On Wed, 2009-01-21 at 09:19 -0700, Bill Barry wrote:
> From: Bill Barry <after.fallout at gmail.com>
> 
> clarifying documentation for paths
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -2111,13 +2111,19 @@
>              displayer.show(repo[n])
>  
>  def paths(ui, repo, search=None):
> -    """show definition of symbolic path names
> +    """show aliases for remote repositories

Fine, but:
   
> +    Two paths are important to know about:
> +    * 'default' is the default path alias used to push to or pull from.
> +      If a repository is created with "hg clone" then the "default" path
> +      is automatically set to the location of the source repository.
> +    * 'default-push' overrides 'default' for pushing if it exists.

Please instead add a new paths help topic as a first patch, then add
pointers from command help to it in a second.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list