Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试提交到集市分支时,我需要能够运行任意命令。
此命令应在成功时返回 0,或在失败时返回任何其他代码,如果命令失败,bzr 应拒绝提交。
我想这样做主要是为了运行测试套件,但是,我还希望能够做其他事情(例如,检查尝试提交的分支是否冻结等)做
您需要编写一个 pre_commit 钩子,例如检查:
http://schettino72.wordpress.com/category/testing/