chiark / gitweb /
Upgrade old StGIT branches to new-format metadata
authorKarl Hasselström <kha@treskal.com>
Mon, 21 May 2007 20:58:38 +0000 (21:58 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 21 May 2007 20:59:28 +0000 (21:59 +0100)
commit598e9d3f25a1d7d61ecc7934c468333e5fb4e726
tree64e86d3b858c04f1b44a0c145e7c0f80c1b18e9e
parente152aab36c48466d9a65baa26d477688a2536ffb
Upgrade old StGIT branches to new-format metadata

There used to be a "stg branch --convert" command that switched
between "old" and "new" format metadata. But my recent metadata
cleanup patches introduced a "new new" format, and more are hopefully
on the way, so it was time to start versioning the metadata format
explicitly in order to avoid future headaches.

This patch removes the "stg branch --convert" command, and makes StGIT
automatically upgrade older formats to the latest format. It stores
the format (as an integer) in the config file. The current metadata
format version number is 2 (the "old" format is 0, and the "new"
format is 1).

Signed-off-by: Karl Hasselström <kha@treskal.com>
Documentation/stg-branch.txt
stgit/commands/branch.py
stgit/stack.py