How do I use SVN in a group project?

0 favourites
  • 11 posts
From the Asset Store
With this template you can create your own archer game and customize it however you want.
  • We already have an SVN server and we saved our project as a project and not a single file.

    But how can we merge 2 different changes that 2 different level designers have made?

    Me and my friend did a test. I made a sprite with a blue dot and he made a sprite with a red dot.

    Then I did a SVN Commit and it seemed to work okay. And then he did as well but the revision count did not go up when he commited(uploaded his changes).

    So now his red dot does not appear.

    Are we supposed to use something else then commit? Or is this not possible at all?

  • You should update before committing. Then SVN will receive everyone else's changes, merge them, and then allow you to commit a project including all the changes. If someone else commits, you then need to update yourself again to receive their changes and merge it in to your own local working copy. BTW I highly recommend using TortoiseSVN on Windows, it's a really nice point-and-click GUI which makes it all really easy.

  • Thanks a lot for the reply!

    I just thought that updating before commiting would overwrite the changes I had made.

  • Updating should actually merge everything together. SVN never just steamrollers your work - if someone changes the same thing you changed, it will mark it as a conflict and ask you to manually determine what to use. However as long as you don't work on the same parts of the project at the same time, conflicts should be rare and everything should just merge silently.

  • I'm testing it

  • Alright we both created 2 sprites to test it. He saved his changes and commited them.

    I saved my changes and I updated before I commited and it said that the .caproj file was in a conflicted state and it finished the update anyways.

    I shrugged it off and did a commit and it gave me this:

    Command: Commit  
    : E:\Workshop\rpg\Layouts\Layout 1.xml  
    Error: Commit failed (details follow):  
    Error: Aborting commit: 'E:\Workshop\rpg\Layouts\Layout 1.xml' remains in conflict  
    Completed!:   
    
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The commit hasn't worked, you need to resolve the conflict. Something like TortoiseSVN will make it an awful lot easier to do that, otherwise you have to go digging around in strangely formatted text files.

  • And how do you resolve conflicts exactly? Do you rename something? Is there some feature in Tortoise that does it for you maybe?

    EDIT: Oh and we have been using tortoise in case you didn't know.

  • TortoiseSVN integrates with Windows Explorer, just browse to the file, right-click it and there should be an option like 'resolve conflicts'. Try to avoid working on the same layout/event sheet, and always update before you commit - that will help avoid conflicts.

  • Alright that seemed to work! Thanks a lot for the help :D Real friendly community indeed.

  • Also if you just want to overwrite your local file to get the latest version, you can use the 'revert' option. It's good for when you want to basically scrub anything local to your file and get the latest version from the SVN.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)