我可以将 bzr 中央存储库主干迁移到新位置吗?
我在我的主目录中设置了一个中央存储库。
我将其设置在我的主目录中,并希望将其从 /home/$USER 移动到 /home/share/。
作为参考,以下是按照 bzr 文档:
#establish the central repository
mkdir project
mkdir project/dev
bzr init-repo --no-trees sftp://server/home/$USER/project
bzr init sftp://server/home/$USER/project/trunk
#make local repository
bzr init-repo project
cd project
bzr branch sftp://server/home/$USER/project/trunk dev
#copy files, add to bzr, commit
mv files project/dev/
bzr add
bzr commit -m 'initial import'
I set up an central repository in my home directory.
I set it up in my home directory and would like to move it from /home/$USER to /home/share/.
For reference, here are the details of the initial setup for reference following the directions in the bzr documentation:
#establish the central repository
mkdir project
mkdir project/dev
bzr init-repo --no-trees sftp://server/home/$USER/project
bzr init sftp://server/home/$USER/project/trunk
#make local repository
bzr init-repo project
cd project
bzr branch sftp://server/home/$USER/project/trunk dev
#copy files, add to bzr, commit
mv files project/dev/
bzr add
bzr commit -m 'initial import'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需使用系统的简单
mv
命令即可移动您的中央存储库及其内部的所有分支。但是,您需要更新所有本地工作分支,以在移动中央存储库后记住新位置。您可以使用以下命令来完成此操作:
或者,如果您使用签出(使用
bzr checkout
命令在本地计算机上创建),则使用命令更新 master 分支位置:You can move your central repository and all branches inside it with just plain
mv
command of your system.But you'll need to update all your local working branches to remember new location after move of central repository. You can do it with following commands:
Or if you're using checkouts (created on local computer with
bzr checkout
command) then update master branch location with command: