如何从 bzr 分支导出子目录?

发布于 2024-09-30 17:17:55 字数 726 浏览 0 评论 0原文

Bazaar 用户参考导出部分包含:

Purpose: Export current or past revision to a destination directory or archive.
Usage:   bzr export DEST [BRANCH_OR_SUBDIR]

此命令:

bzr export --format=dir . lp:stevedore

lp:stevedore 分支创建整个树,不包含 .bzr 目录。

export 能否用于仅从分支 lp:stevedore 导出 src/server 子目录?

bzr export --format=dir . lp:stevedore/src/server

生产:

bzr: ERROR: Permission denied: "Cannot create 'src'. Only Bazaar branches are allowed."

Bazaar User Reference export section contains:

Purpose: Export current or past revision to a destination directory or archive.
Usage:   bzr export DEST [BRANCH_OR_SUBDIR]

This command:

bzr export --format=dir . lp:stevedore

Creates the entire tree from the lp:stevedore branch without the .bzr directory.

Can export be used to export just the src/server sub-directory from branch lp:stevedore?

bzr export --format=dir . lp:stevedore/src/server

Produces:

bzr: ERROR: Permission denied: "Cannot create 'src'. Only Bazaar branches are allowed."

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

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

发布评论

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

评论(1

困倦 2024-10-07 17:17:55

这在从本地分支导出目录时有效。我能够重现这一点,它似乎是一个错误:https://bugs.launchpad。净/bzr/+bug/403857

This works when exporting a directory from a local branch. I was able to reproduce this and it seems to be a bug: https://bugs.launchpad.net/bzr/+bug/403857

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