best practice for maintaining two differents codes in one mercurial repository

Nicolas Pinault nicolasp at aaton.com
Mon Jun 13 08:37:33 UTC 2016


Hi,

Le 13/06/2016 à 10:23, Hedieh Ebrahimi a écrit :
> Nathan,
>
> Thanks for your reply. So the project I work on has two different 
> sub-projects each containing a different code. (python and fortran). I 
> can put the two sub-projects in different folders in one repository, 
> but then the changeset logs of  two sub-projects will be shown together.
>
> As I understood if I want to have different chain of logs for each of 
> the sub-projects, then I should create two branches and do development 
> for each sub-project on a different branch.  I am just wondering if 
> this is the best way to go or there are better ways?
Why not create a main project with 2 subrepos ?
One subrepo for Fortran code and one for Python code.

Nicolas
>
> Thanks for your comments,
>
> On Fri, Jun 10, 2016 at 9:19 PM, Nathan Goldbaum 
> <nathan12343 at gmail.com <mailto:nathan12343 at gmail.com>> wrote:
>
>     You could use two subfolders in the same project. You could also
>     use two named branches.
>
>     On Fri, Jun 10, 2016 at 6:16 AM, Hedieh Ebrahimi
>     <hemla21 at gmail.com <mailto:hemla21 at gmail.com>> wrote:
>
>         Dear all,
>
>         I am currently working on two different sub-project. Till now
>         I have had two different mercurial repositories for each. I
>         would like to keep the project all in one repository, but then
>         I still would like to be able to work on the two project
>         simultaneously and separately without having to commit changes
>         from both sub-projects all in one commit. My two sub-projects
>         are totally independent.
>
>         I was wondering what is the best practice in this case.
>
>         Thank you very much in Advance for your help,
>
>         _______________________________________________
>         Mercurial mailing list
>         Mercurial at mercurial-scm.org <mailto:Mercurial at mercurial-scm.org>
>         https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
>
>
>
>
> _______________________________________________
> 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://lists.mercurial-scm.org/pipermail/mercurial/attachments/20160613/6463ece4/attachment-0002.html>


More information about the Mercurial mailing list