I made the mistake of committing to default on my Bitbucket-hosted Mercurial repository. Now, I can no longer push any changes even if they are on another branch. I get an error:
permission denied to update branch default
I've even tried pushing to a specific branch using `hg push -b BranchName`, but the permission error on `default` is a show-stopper even when I'm not trying to push to that branch. How can I fix this so that I'm able to push changes on two other branches?
No, that doesn't seem to help. I still get the same error and the changes are not pushed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you also have uncommited changes on your current branch? Check with hg status
If so, you can try the following:
hg shelve --all
hg up correct_branch_name
hg unshelve
The correct_branch_name is the branch to which you actually wanna push the changes. Afterwards you can do hg commit and hg push to make sure your changes are on the new branch.
Did that fix anything?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I saw that, but he says to use advanced options at the bottom of the push window. Not sure how to translate that to the terminal. He does mention specifying which branch you want to push. I'm guessing that would translate to the -b option which I have tried.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Devon,
This thread discusses the same issue:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the output of hg status? Can you add this to this discussion?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure thing, and thanks for your help. I get no output from hg status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.