Author Topic: One or multiple repositories?  (Read 899 times)

Offline shoespeak

  • Level 11
  • *
  • Posts: 75
  • Reputation: +3/-0
    • View Profile
One or multiple repositories?
« on: November 03, 2009, 08:57:05 AM »
Hello all,
Finally getting around to installing SVN on the server where I develop C programs. I came to this decision after reading about the different version control systems on another thread, and finding out that I've already got SVN installed.

I am setting it up and I can't decide if I should use multiple repositories for each project, or just one big one.

The projects are all pretty good size, but they are not worked on continuously...once one is finished, I don't really touch it again (they are mostly class projects at this point.) Because of this I was thinking about just setting up a new repository for each project inside the specific project folder.

How do other people use SVN?

(Sorry if this is a repeat of the other thread...if it is I will delete ;) )

Offline Harkins

  • Level 28
  • **
  • Posts: 424
  • Reputation: +11/-2
  • Coder, blogger, entrepreneur.
    • View Profile
    • Push CX - Blog
Re: One or multiple repositories?
« Reply #1 on: November 03, 2009, 10:55:46 AM »
I like one per project, and I'd think of a class as a project (because multiple assignments may use very similar code, or have you revising previous code).

Visit #bbg on irc.freenode.net to talk browser games anytime.

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: One or multiple repositories?
« Reply #2 on: November 03, 2009, 11:48:33 AM »
I would create one repository and make subfolders for each project :).

Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: One or multiple repositories?
« Reply #3 on: November 03, 2009, 12:04:37 PM »
I would create one repository and make subfolders for each project :).
I don't think that's a good idea, that way you'll have version numbers scatter around multiple projects etc. don't work with them much, maybe I'm wrong

On the other hand 1 repo per project is probably enough
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline jannesiera

  • Level 35
  • **
  • Posts: 1,026
  • Reputation: +6/-1
    • View Profile
    • BBGameDesign
Re: One or multiple repositories?
« Reply #4 on: November 03, 2009, 12:59:34 PM »
I would create one repository and make subfolders for each project :).
I don't think that's a good idea, that way you'll have version numbers scatter around multiple projects etc. don't work with them much, maybe I'm wrong


You are right, but I assume your project is stable when you finish it, so you won't have to go all the way back. Since it's only one project at the time and just for school it's easier to just create a subfolder.

Offline shoespeak

  • Level 11
  • *
  • Posts: 75
  • Reputation: +3/-0
    • View Profile
Re: One or multiple repositories?
« Reply #5 on: November 03, 2009, 02:40:28 PM »
Finally got SVN up and running...ugh what a pain that is when you know the bare essential linux commands!  Somehow I ended up creating empty SVN repositories in every directory...whoops!

Thanks for all the input.

I see online that this discussion is not new, and most people end up creating one big repository, with with subfolders as they are needed. I think when making these decisions you need to consider how many people will be using the repo and how active the projects will be.

Offline ninto

  • Level 5
  • *
  • Posts: 16
  • Reputation: +0/-0
    • View Profile
Re: One or multiple repositories?
« Reply #6 on: November 08, 2009, 02:37:46 AM »
None, use git :)

Offline dbest

  • Game Owner
  • Level 20
  • *
  • Posts: 211
  • Reputation: +3/-0
    • View Profile
    • Tennis Masters
Re: One or multiple repositories?
« Reply #7 on: November 08, 2009, 03:30:09 AM »
Git was a bit confusing for me to use.

Offline Harkins

  • Level 28
  • **
  • Posts: 424
  • Reputation: +11/-2
  • Coder, blogger, entrepreneur.
    • View Profile
    • Push CX - Blog
Re: One or multiple repositories?
« Reply #8 on: November 08, 2009, 01:51:16 PM »
ninto: good answer, but you still have the question of one repo or many. :)

There's a couple nice free books on git available now: Pro Git (the best), Git Community Book (part of the official project), Git Magic (a bit rough, more of a collection of notes).
« Last Edit: November 08, 2009, 04:47:34 PM by Harkins »

Visit #bbg on irc.freenode.net to talk browser games anytime.

Offline ninto

  • Level 5
  • *
  • Posts: 16
  • Reputation: +0/-0
    • View Profile
Re: One or multiple repositories?
« Reply #9 on: November 08, 2009, 01:53:38 PM »
Sure thing, I'd say multiple, one per project.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal