Subrepositories

Nicolas Pinault nicolasp at aaton.com
Wed Aug 31 15:10:12 UTC 2016


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 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20160831/629d24f4/attachment-0002.html>


More information about the Mercurial mailing list