How can a heavyweight checkout be changed to a lightweight checkout in Bazaar?

不羁的心 提交于 2019-12-12 11:28:21

问题


I have a shared repository like so:

repo/
  mainline
  featureA
  featureB

I like to do all my development in one place, so I do something like

> cd /Development/workingArea
> bzr checkout featureA
...
> bzr commit -m "Worked on featureA"
> bzr switch featureB

Over time, I've modified my feature branches to be treeless branches, as I found I was never interacting with those working trees.

I would also like to change the checkout in /Development/workingArea so that it is a lightweight checkout, as if I had used the --lightweight option. I can't find a command similar to the bzr remove-tree command that would remove the history from the checkout.

Can anyone tell me how to do it?


回答1:


bzr reconfigure command:

bzr reconfigure --lightweight

See http://doc.bazaar.canonical.com/latest/en/user-reference/reconfigure-help.html



来源:https://stackoverflow.com/questions/1835515/how-can-a-heavyweight-checkout-be-changed-to-a-lightweight-checkout-in-bazaar

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