pre-commit hooks and $Id$ banners?

Martin Pool mbp at sourcefrog.net
Mon May 1 02:35:06 BST 2006


On 23 Apr 2006, Jamie Wilkinson <jaq at spacepants.org> wrote:

> Sure it's pedantic, but it's a necessary part of QA and software engineering
> to be able to accurately describe the source code at any discreet point in
> time.

This is arguably a reason to commit the text exactly as it is in the
working tree, without doing unexpansion of tags.  So typically the
revision will be committed with the *previous* version of the tags,
because that's what they had when the commit command was typed.  All
expansion would be done at the moment of building/updating the working
tree, which allows for you to later disable that, and get back the
precise previous contents.

On the other hand by enabling tags for a particular file the user has
pretty much that they allow the file to vary there.

-- 
Martin




More information about the bazaar mailing list