Show More
@@ -1564,7 +1564,7 b' class localrepository(repo.repository):' | |||
|
1564 | 1564 | |
|
1565 | 1565 | newbranches = list(set(localbrheads) - set(remotebrheads)) |
|
1566 | 1566 | if newbranches: # new branch requires --force |
|
1567 |
branchnames = ', '.join(" |
|
|
1567 | branchnames = ', '.join("%s" % b for b in newbranches) | |
|
1568 | 1568 | self.ui.warn(_("abort: push creates " |
|
1569 | 1569 | "new remote branches: %s!\n") |
|
1570 | 1570 | % branchnames) |
@@ -84,23 +84,23 b' 0' | |||
|
84 | 84 | % push on existing branch and new branch |
|
85 | 85 | pushing to ../f |
|
86 | 86 | searching for changes |
|
87 |
abort: push creates new remote branches: |
|
|
87 | abort: push creates new remote branches: c! | |
|
88 | 88 | (use 'hg push -f' to force) |
|
89 | 89 | 1 |
|
90 | 90 | pushing to ../f |
|
91 | 91 | searching for changes |
|
92 |
abort: push creates new remote branches: |
|
|
92 | abort: push creates new remote branches: c! | |
|
93 | 93 | (use 'hg push -f' to force) |
|
94 | 94 | 1 |
|
95 | 95 | % multiple new branches |
|
96 | 96 | pushing to ../f |
|
97 | 97 | searching for changes |
|
98 |
abort: push creates new remote branches: |
|
|
98 | abort: push creates new remote branches: c, d! | |
|
99 | 99 | (use 'hg push -f' to force) |
|
100 | 100 | 1 |
|
101 | 101 | pushing to ../f |
|
102 | 102 | searching for changes |
|
103 |
abort: push creates new remote branches: |
|
|
103 | abort: push creates new remote branches: d! | |
|
104 | 104 | (use 'hg push -f' to force) |
|
105 | 105 | 1 |
|
106 | 106 | % fail on multiple head push |
General Comments 0
You need to be logged in to leave comments.
Login now