On 11/21/2011 07:38 AM, Marvin Yan wrote:
> Hello everyone,
>
>   I have some subrepositories under a project , but the "pull" command
> won't effect on these subrepositories, when "push" command does.

See http://mercurial.selenic.com/wiki/Subrepository#Pull - and the rest 
of that page.

>   I'm very confused by this strange setting, if someone else push
> anything to one of the subrepository, what should I do? It seems I must
> pull every subrepository manually, my god......

The correct answer to that question is in the link above.

What you really wanted to ask for might be how to handle the situation 
where a subrepository is shared and used as subrepository of several 
different repositories, and where you in one context want to see 
subrepository changesets introduced in another.

The answer to that is that Mercurial is used for version _control_. It 
allows you to restore previous directory content. It will help you to 
pull and update subrepositories to the revision referenced in the outer 
repo, but it will never introduce new revisions. You will have to do 
that, either by committing in the subrepositories or by (pulling and) 
updating.

> Is there some way to pull all the changes(include all the
> sub-repositories) automatically?

http://mercurial.selenic.com/wiki/OnsubExtension .

/Mads

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to