prevent push overwrite of repo branch

Asked by edA-qa

How can I set the file permissions of a 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?


Our server is a linux machine using bzr+ssh as the protocol.

Question information

English Edit question
Bazaar Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :

Set the append_revisions_only option in branch.conf.


Revision history for this message
edA-qa (eda-qa) said :

Users that can push don't need write access to the "branch.conf" file, do they?

If they don't, that'd appear to do what I want.

Can you help with this problem?

Provide an answer of your own, or ask edA-qa for more information if necessary.

To post a message you must log in.