如何从 python 脚本读取 bzr 存储库?
比如获取有关变更集/评论等的信息。
like getting information about changesets/comments etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
比如获取有关变更集/评论等的信息。
like getting information about changesets/comments etc.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
首先,如果您使用的是 Windows,则应考虑使用“Python 2.x”安装程序,而不是 Bazaar 的独立安装程序。这会将
bzrlib
安装在 Python 的 site-packages 目录中,因此您不必搞乱 %PYTHONPATH%。如果您已经使用了 stanadalone 安装程序,则需要将 Bazaar 安装目录中的 lib/ 和 lib/library.zip 添加到 PYTHONPATH em> 环境变量。如果您选择默认值,则为 C:\Program Files\Bazaar一旦您成功
导入 bzrlib
,就可以找到一些展示如何与 bzr 后端实际交互的示例在 Bazaar wiki 上。有关详细信息,请参阅与 Bazaar 集成 在 Bazaar 开发人员文档
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\BazaarOnce 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
找到:http://wiki.bazaar.canonical.com/BzrLib
Found: http://wiki.bazaar.canonical.com/BzrLib