Re: [StGIT PATCH] Don't use patches/<branch>/current
- From
Karl Hasselström <kha@treskal.com>
- Date
- May 16, 2007, 06:27 UTC
- Message-ID
- <20070516062711.GA7235@diana.vm.bytemark.co.uk>
- In-Reply-To
- <20070515214952.GQ19253@nan92-1-81-57-214-146.fbx.proxad.net>
On 2007-05-15 23:49:52 +0200, Yann Dirson wrote:
Show 8 quoted lines
> On Tue, May 15, 2007 at 10:36:05PM +0100, Catalin Marinas wrote: > > > I think it would be useful to have a version file (probably per > > branch) and just upgrade when a mismatch is detected (in the > > __init__ function). > > Sounds reasonable, but I'd rather keep that in the config file (eg. > branch.<name>.stgit.formatversion).
I agree that explicit versioning would be a good idea -- doing explicit upgrades at well-defined points is good headache prevention.
And I agree that the config file is a good place to put it.
I'll probably have time to whip up a patch later today. I think I'll call the old "old" format 0, the old "new" format 1, and then use successive integers from then on. I'll make a single version bump for the format changes you've alreay applied, and re-do the format-changing patches you haven't applied yet so that they have version bumping integrated.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle