Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should you use branches in subversion if only one person is working on a project?

Tags:

branch

svn

trunk

I'm just starting out using Subversion on a C# project. I am working on this project alone, yet I'm trying to treat is as if I was working in a group for my own learning experience.

As I understand it the typical way of working with subversion is to have a trunk folder that will always build. Major changes are then create in new branches, which are then merged back into the trunk when they are complete. So there may be many simultaneous branches being worked on by different team members.

But if I'm working on my own is there any point to making a branch? Say I'm at revision 100 in HEAD. I'll create a branch at revision 101, and then keep working on the branch until Revision 110. Now I can merge 110 back into the trunk, but there is no one else on the project so there won't be any change in the trunk to merge back into. I'd just be merging right back into revision 100 where I original created the branch.

like image 332
Eric Anastas Avatar asked Dec 02 '22 07:12

Eric Anastas


2 Answers

Branches have nothing to do with how many people are working on a project. A branch is for an alternate development stream, like different feature sets, hardware targets, or clients.

If 100 people are working on a single deliverable they should be using the same branch. If a single individual is supporting a dozen different deliverables he should have a dozen branches.

like image 68
Dour High Arch Avatar answered Dec 04 '22 21:12

Dour High Arch


I think branches should be used always you need do split the actual code from the base, for example when you need to try a far fetched solution for a problem or something. With branches you can separate the problems and the attempts of resolution and keep the version control.

like image 27
Alex Rodrigues Avatar answered Dec 04 '22 21:12

Alex Rodrigues