Bug ID: 6080
Summary: Unclear warning message when pushing a closed branch
Assignee: [hidden email] Reporter: [hidden email] CC: [hidden email]
A developer of a project using Mercurial was confused by a warning that he did
not understood. He was trying to push on his own repository after a pull from
the main repository of the project and he got:
hg push ../tmp_repo
pushing to ../tmp_repo
searching for changes
abort: push creates new remote branches: dev!
(use 'hg push --new-branch' to create new remote branches)
The branch dev was closed and he didn't know that this branch exists since he
pulled the branch already closed from the main repository. So he obtained
and `hg heads` also showed one head.
Wouldn't be good to provide a better message in this case? At least to mention
that the branch is closed with something like
"abort: push creates new remote branches: dev (closed)!"