finding the repository's parent

Thomas Arendsen Hein thomas at intevation.de
Tue Aug 9 08:22:59 CDT 2005


* Anupam Kapoor <anupam.kapoor at gmail.com> [20050809 15:16]:
> On 8/9/05, Mark Williamson <mark.williamson at cl.cam.ac.uk> wrote:
> > > how can i find the parent for a given repository ? is there a command
> > > like "hg parent" which just tells, from which repository a clone was
> > > created ?
> > 
> > Assuming you created the repo with a clone, in .hg/hgrc the "default" path
> > will be the repo you cloned and which future "pull"s will come from.
>
> thanks ! are there any plans to add a "hg parent" (or some such) command ? 

Just use 'hg paths', or if you really want to see only the default
repo:
hg paths|grep '^default ='

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/


More information about the Mercurial mailing list