Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I set the file permissions of a bzr repository to allow somebody to push to the branch, but not be allowed to overwrite it?

That is, currently a user can completely overwrite the branch by doing bzr push --overwrite --use-existing-dir target_repo_branch. This is obviously not a good thing as the revision history then appears to be completely lost.

So how can I prevent that operation while allowing the normal correct push operations?

share|improve this question
up vote 1 down vote accepted

You can set the option append_revisions_only on the branch configuration to true.

Or you can use bzr init --append-revisions-only when creating the branch. That would avoid overwriting the history.

You can look here


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.