如何从 python 脚本读取 bzr 存储库?

发布于 2024-09-02 10:03:30 字数 24 浏览 2 评论 0原文

比如获取有关变更集/评论等的信息。

like getting information about changesets/comments etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

折戟 2024-09-09 10:03:30

首先,如果您使用的是 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\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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文