开发者

How to insert bzr revision number to each revision controlled file as a comment during commit and/or push

开发者 https://www.devze.com 2023-03-19 13:44 出处:网络
We use bzr as the version control system at work and we\'ve come to realize that in a certain project, it would be quite handy if each of the revision controlled files had the 开发者_StackOverflow社区

We use bzr as the version control system at work and we've come to realize that in a certain project, it would be quite handy if each of the revision controlled files had the 开发者_StackOverflow社区revision number as a comment on the first line of each file.

In a nutshell I want to add # BZR REV: xxx to each python file during commit.

A quick bash script would achieve this but as I understand this should be standard practice in other version control systems like SVN, so I'm hoping for a builtin way to achieve what I need. Also it would save me the trouble of writing that bash script :)


See the bazaar keywords plugin.

0

精彩评论

暂无评论...
验证码 换一张
取 消