How do you sync changes between multiple codebases?
Asked Answered
A

2

1

Let's say I want to create a spinoff of a chat application branded under a different name, different UI, and some changed features. How would one sync changes between these to codebases which are 80% the same?

EDIT: Already use git.

Auteur answered 5/11, 2009 at 4:19 Comment(0)
H
5

This is a pretty generic question and one that should be covered in any basic Software Engineering course.

I'd start with:

  1. SCM (Source CodeManagement) http://en.wikipedia.org/wiki/Source_Code_Management
  2. Separate 'shared' code into libraries (either statically or dynamically linked)

There is a whole field of experts and products on this topic - revision control and merging.

He answered 5/11, 2009 at 4:25 Comment(2)
+1 very valuable suggestion. Have a library for the common code, and have the applications have the context specific-code.Isidroisinglass
thanks! already use git. good suggestion for libraries - thanks!Auteur
I
1

You should look into using a distributed code repository, if it is usually a one-way sync (main development pushes to spinoff project).

Mercurial is one of the most popular DCR There are many distributed code repository systems. The website provide a nice tutorial.

Isidroisinglass answered 5/11, 2009 at 4:24 Comment(2)
Look at subversion, git, bazaar. I hear good things about git for really distributed source management.Externalism
@Jim, SVN isn't good for this case scenario I think. Added a reference to hg which is a bit easier to use than git for new comers IMHO.Isidroisinglass

© 2022 - 2024 — McMap. All rights reserved.