I made my own web framework: now how to keep in sync with applications? Should I be using versions?
... and I used the first web application, now I will create the second one.
In this first web application, I extended the basic frame library with new things and a fast-updating frame branch.
I am using bazaar to maintain a framework and web application. The application was in the beginning, a complete branch of the source tree, now I update the framework manually every time the main files change. (copy changed files from web application to framework).
With this second web app I'm going to build, I need to be aware of the versions (or revisions) that the app is based on. If I find a bug in this version, I can fix and then sync the files with the first web application without worrying: the functions will be the same for this application.
If I am going to make changes to the kernel (new behavior, new functions in the library, or anything new in the original tree), it should be called a "new version".
What's the best way to do this?
Since I am using a distributed version control system (bazaar), I am not dealing with VERSIONS, but the version numbers that change every time.
Please, fresh my mind with new ideas.
a source to share
I would organize all of these apps in my repositories:
1) Your framework code in which you then release different versions: 1.0, 1.1, etc. 2) Web app 1 where you plagiarize the xyz framework component version 3) Web application 2 where you plagiarize the xyz component framework version
If now WebApp1 needs a new feature, you implement that in your framework, and then you release a new version, or maybe you make some changes first that you want to integrate into your WebApp1 then, and after that you create a new release.
With that, you can easily tell that WebApp1 depends on version 1.0 of the framework code, and perhaps WebApp2 depends on newer framework code, like version 1.2.
The important thing is that you can integrate your framework code as a "component" or "plugin" into your web applications. Then you can easily replace the framework code with new ones.
Hope I understood your question.
a source to share