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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

mercurial-bugs-2
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: [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
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.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel