I am currently developing a multi-stage project for a course I’m assisting to . I’m over with the first phase of the project. As for the second part I’ll want to start with the code my professor has already done for the first stage, for he is doing it in parallel with us(actually, a bit ahead of us) to make sure what he’s asking us to do is actually feasible!. My professor’s code is in another repo.
Now, my question is on how to handle this. My gut is telling I should create a tag phase1 and put my current trunk contents there. Afterwards I’ll just have to erase all the contents in the trunk and checkout my professor’s code to some folder on my hard drive (it seems I cannot just checkout it to my trunk folder directly!). After that, I’ll copy what I just checked out in my trunk and hit commit.
Is this a correct approximation? I realize this one will work, I’m just wondering whether this is the cleanest and appropriate way to accomplish the task!
Thanks
svn mvyourtrunkto sometwhere else, likebranches/phase1, thensvn mkdira newtrunkwhere you can check in your professor’s code, orsvn importyour professor’s code into a newtrunk.Edit: As @forsvarir points out, it’s probably a good idea to put the professor’s code on its own branch so you can merge from it as needed.
So after moving your original
trunk,svn importthe professors code tobranches/professor(or whatever name), andsvn copybranches/professortotrunk, this way you can add the professors changes tobranches/professoras he updates his code, and you can merge those changes totrunk.