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?


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



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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