Search code examples
bazaar

Bazaar shared repository structure with/without working tree


I'm using bazaar with the following shared repository structure on network drive:

proj_name (shared repo **with working tree**)  

.bzr  
developer a (integrator) (FOLDER)
    trunk      (branch)
    feature a  (branch)
    feature b  (branch)
developer b (FOLDER)
    trunk      (branch)
    feature a  (branch)
    feature b  (branch)
developer c  (FOLDER)
    trunk      (branch)
    feature a  (branch)
    feature b  (branch)
formal version (branch)

I want that formal version branch will be branch without working tree, where all the other branches will be with working tree.
Is that possible?

NOTE : I tried to create the formal version branch with bzr push N:\Projects\proj1\formal --no-tree but its still create the working tree


Solution

  • I found two solutions for this probelm:

    In case of existing branch with tree you need to use 'bzr remove-tree PATH (Solution from Martin Pool)

    In case you want to create branch without tree , the bzr branch --no-tree is what you need (Solution from jelmer)

    Notes:

    1. bzr push PATH --no-tree to a PATH that's not exist , will create branch WITH tree.
    2. Once branch is created without tree or remove-path was executed , you can
      use push with or without `--no-tree switch and the branch will stay without tree.