How can i read bzr repository from python script?

橙三吉。 提交于 2019-12-08 06:01:32

问题


like getting information about changesets/comments etc.


回答1:


First off, if you are on Windows, you should consider using the "Python 2.x" installers rather than the standalone installer for Bazaar. This will install bzrlib in Python's site-packages directory, so you don't have to mess around with %PYTHONPATH%. If you have already used the stanadalone installer, you'll need to add lib/ and lib/library.zip from your Bazaar installation directory to the PYTHONPATH environment variable. If you chose the default, this is C:\Program Files\Bazaar

Once you can successfully import bzrlib, some examples showing how to actually interact with the bzr backend can be found on the Bazaar wiki.

For details, see Integrating with Bazaar in the Bazaar developer documentation




回答2:


Found: http://wiki.bazaar.canonical.com/BzrLib



来源:https://stackoverflow.com/questions/2864789/how-can-i-read-bzr-repository-from-python-script

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