hg: how do I push newly created branch back into central repository?

Viewed 38774

I cloned the centeral repository via

hg clone my_project my_project_1

then after switching to a newly created repo I marked as a new branch

hg branch v1

While inside the new clone I issued

hg ci -m "branch created"

but when I tried to push the changes back to the original repository I cloned from I got this error:

abort: push creates new remote branches: v1!

How do I push the branch into the original repository? Am I doing the right thing by trying to push the branch into the original repo? I just want to have a centralized repository which would contain branches and from which I would be able to check out branches. What's the best way to deal with this problem? Thank you.

1 Answers
Related