3 Apr 10:58
Branches to patches
From: Teemu Ikonen <tpikonen <at> gmail.com>
Subject: Branches to patches
Newsgroups: gmane.comp.package-management.vcs-pkg
Date: 2008-04-03 08:58:47 GMT
Subject: Branches to patches
Newsgroups: gmane.comp.package-management.vcs-pkg
Date: 2008-04-03 08:58:47 GMT
Stefano Zacchiroli wrote: > However in general it is not possible to > require that all patches apply properly to pristine source. In some > (rare fortunately) cases two patches will conflict with each other on > the pristine source and you need to make one depend on the other or the > other way round. I recently started to use git in some of my Debian packages and thought about this issue a bit. When maintaining packages with a version control system, having each "feature" in a separate branch (branched from the upstream version) is clearly superior to a stack of patches. You retain separate history for every branch and can easily develop features independently, without having to worry about conflicts. When making a release, all the feature branches are merged to an integration branch. The end product of the packaging should be this well-integrated source, but it would be nice to also have the separate features easily extractable from the source package as well. Usually this is achieved by having the package contain a quilt patch series or similar. Converting a set of branches to a stack of patches is easy if there are no conflicts, but of course this is not always the case. A brute force method of making a patch stack which has all the feature patches applicable to pristine source and ends up with the complete integrated source would be to apply feature patch #1, revert it with the same patch reversed, apply feature patch #2, revert it, etc. and finally to apply a patch containing all the features, plus additional integration changes. The patch stack would then contain every change(Continue reading)
RSS Feed