how to display the "clone" parent?

Mads Kiilerich mads at kiilerich.com
Tue Oct 6 11:55:41 CDT 2009


On 10/06/2009 06:40 PM, Robert P. J. Day wrote:
>
>    working my way thru the hg book, p. 20, it's obvious that by
> default, "hg incoming" will display against the repository from which
> the current working copy was cloned, correct?  (the same holds for "hg
> pull" if i read this properly.)

yes, it all defaults to use the "default" path

>    so how does one display the "parent" repository?  i believe that's
> what i can see in .hg/hgrc:
>
> [paths]
> default = /home/rpjday/hg/test/hello

correct

> is there an hg command that prints that?  it seems like a useful piece
> of info to be able to ask for.  and what is the correct terminology
> for the parent repository from which one cloned?  thanks.

With Mercurial you can pull from any repository and push anywhere, so 
there is no well-defined "parent repo". It is up to you to define your 
own workflow. All you can say is that you pulled from some repo. The 
paths definitions are convenient shorthands, and often the default path 
is the only one you need.

For example, I have

[paths]
bb = ssh://hg@bitbucket.org/kiilerix/hg-crew-misc/
httpdefault = https://kiilerix@bitbucket.org/kiilerix/hg-crew-misc/
default = http://hg.intevation.org/mercurial/crew
crew-stable = http://hg.intevation.org/mercurial/crew-stable
hg = http://selenic.com/hg

Usualy I just use default, but occasionally I pull from hg if I think 
there are some interesting changesets there.

/Mads


More information about the Mercurial mailing list