Bazaar and $Id$

让人想犯罪 __ 提交于 2019-11-28 09:15:00

问题


Most my sources are in subversion and I use '$Id$' to add revision information to those sources. Then I can easily check what sources were used (e.g.. --version option shows that info).

Now I'm going to use bazaar and I can't find such a functionality. Is there any equivalent of svn '$Id$' in bazaar?


回答1:


Having automatically generated Id tags that show a sensible version number is impossible to do with DSCM tools like Bazaar because everybody’s line of development can be different from all others. So somebody could refer to version “1.41” of a file but your version “1.41” of that file is different.

Basically, $Id$ does not make any sense with Bazaar, Git, and other distributed source code management tools.



来源:https://stackoverflow.com/questions/343721/bazaar-and-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!