pre-commit hooks and $Id$ banners?

Martin Pool mbp at sourcefrog.net
Mon Apr 24 05:23:25 BST 2006


On 24/04/2006, at 3:26 AM, John Arbash Meinel wrote:
>
> So you're saying that you don't want $Revision$ to change when the  
> tree
> changes if the file itself hasn't changed. Is that correct?
>
> So we would need a "LastChangedRevision" *and* a "TreeRevision" style
> tags. Correct?
>
> Can you explain your use case, for why you want that behavior? I think
> we can support it, but it might be best to support what a user is  
> trying
> to do, rather than trying to support their exact steps.

$TreeRevision$ may be significantly more useful than what svn can  
do.  Many people who've tried svn keywords have probably been  
disappointed they could not easily get the overall revision into  
version.h.  (But perhaps version-info would be better again.)

That would mean that after each commit or update all keyword-enabled  
files would need to be scanned and possibly updated, not just those  
touched by the operation.

-- 
Martin







More information about the bazaar mailing list