On 1/2/2014 5:25 PM, Mike Fochtman wrote:
> Currently the team hasn't used any form of version control on these
> applications because 'it would be too hard...'
I think you can get 99% of the way there by making sure that application
'A' is under full version control. Some version control is better then
no version control, so tackle project A first.
> I'm part of a small development team (currently 4). We have two
> applications used in-house that consist of about 1900 source files.
> The two applications share about 1880 of the files in common, and
> there are only about 20 different between them.
> For a lot of complicated reasons I won't go into here, we can't split
> the common files into a shared-library sort of project.
> Most of our development goes on in application 'A'. Currently we
> then transferred over to the other application 'B' development
> machine manually and build/test that one.
I would put application B into the same repository under a 2nd root
directory. The primary reason that I recommend a single repository for
both applications is so that SVN 1.8's duplicate detection will keep
your repository size under control. So you would have:
There's a few ways to tackle moving stuff from project A to project B.
Most of them involve making sure that the "unique" files not shared
across the applications are in a separate directory.
One method would be to checkout project B's files, then use "svn export"
to overlay project A's files into the project B's working copy. It's
messy, but it duplicates your existing process.
Another option would be to branch A's trunk (or stable release tag) into
B's trunk. Then apply B's changes to make the application look like B.
Or you could combine the approaches and setup your repository like:
Where the files unique to ProjectA are in /projectA/trunk, the files
unique to project B are in /projectB/trunk. The files common to both
applications are in /Common/trunk.
The /buildA/trunk tree is then where you use svn:external to weld files
from Common + ProjectA together into something that builds for
application A. And /buildB/trunk is where you use svn:external to weld
together the application B build.
Received on 2014-01-04 01:08:42 CET