prevent push overwrite of repo branch

Asked by edA-qa on 2011-07-25

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

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
2011-07-25
Last reply:
2011-07-25
Martin Pool (mbp) said : #1

Set the append_revisions_only option in branch.conf.

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

Martin

edA-qa (eda-qa) said : #2

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.