Subrepositories

Nicolas Pinault nicolasp at aaton.com
Thu Sep 1 06:36:48 UTC 2016


Le 31/08/2016 à 17:10, Nicolas Pinault a écrit :
> Le 31/08/2016 à 16:57, Kevin Bullock a écrit :
>>> On Aug 31, 2016, at 02:28, Nicolas Pinault<nicolasp at aaton.com>  wrote:
>>>
>>> Hi,
>>>
>>> I'm starting to use subrepositories.
>>> My first question : Do I have to add .hgsubstate to the repository ?
>> No, you just create the .hgsub file and Mercurial maintains the .hgsubstate for you.
>>
>> What are you using them for? Subrepos are generally considered a feature of last resort—a feature that is fully supported, but has significant tradeoffs in its use vs. normal Mercurial usage. You'll want to read the recommendations and caveats on the wiki:<https://www.mercurial-scm.org/wiki/Subrepository#Recommendations>
> I hoped the answer is "yes".
> I'm quite sure TortoiseHg adds it automatically. If it is not in the 
> main repo, I don't understand how hg knows which revision of the 
> sub-repos have to be used when pulling/updating.

I made a little simple test  (Boost repo is already existing) :

hg init
echo Boost = Boost > .hgsub
hg add .hgsub
hg commit

.hgsubstate has been automatically added and committed to the main repo. 
That makes sense.

>
> I use big libraries (boost and others) in my project. I don't want 
> these libraries to be added to my main repo. So I decided to use 
> sub-repositories.
>
>> pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
>> Kevin R. Bullock
>>
>> .
>>
>
>
> -- 
> *Nicolas PINAULT
> R&D electronics engineer
> *** nicolas at aaton.com <mailto:nicolas at aaton.com>
>
> *AATON-Digital*
> 38000 Grenoble - France
> Tel +33 4 7642 9550
>
> http://www.aaton.com
> http://www.transvideo.eu
> French Technologies for Film and Digital Cinematography
>
> Follow us on Twitter
> @Aaton_Digital
> @Transvideo_HD
>
> Like us on Facebook
> https://www.facebook.com/AatonDigital
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial


-- 
*Nicolas PINAULT
R&D electronics engineer
*** nicolas at aaton.com <mailto:nicolas at aaton.com>

*AATON-Digital*
38000 Grenoble - France
Tel +33 4 7642 9550

http://www.aaton.com
http://www.transvideo.eu
French Technologies for Film and Digital Cinematography

Follow us on Twitter
@Aaton_Digital
@Transvideo_HD

Like us on Facebook
https://www.facebook.com/AatonDigital

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160901/688eb187/attachment.html>


More information about the Mercurial mailing list