[Bug 6080] New: Unclear warning message when pushing a closed branch

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sun Feb 17 06:23:35 EST 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6080

            Bug ID: 6080
           Summary: Unclear warning message when pushing a closed branch
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: pierre.augier at univ-grenoble-alpes.fr
                CC: mercurial-devel at mercurial-scm.org

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
something like:

```
hg branches 
default                        3:2c8ac9499cf1
```

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)!"

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list