Show More
@@ -330,11 +330,13 b' def checkheads(repo, remote, outgoing, r' | |||||
330 | error = _("push creates new remote head %s!" |
|
330 | error = _("push creates new remote head %s!" | |
331 | ) % short(dhs[0]) |
|
331 | ) % short(dhs[0]) | |
332 | if heads[2]: # unsynced |
|
332 | if heads[2]: # unsynced | |
333 |
hint = _(" |
|
333 | hint = _("pull and merge or" | |
334 |
" |
|
334 | " see \"hg help push\" for details about" | |
|
335 | " pushing new heads") | |||
335 | else: |
|
336 | else: | |
336 |
hint = _(" |
|
337 | hint = _("merge or" | |
337 |
" |
|
338 | " see \"hg help push\" for details about" | |
|
339 | " pushing new heads") | |||
338 | if branch is not None: |
|
340 | if branch is not None: | |
339 | repo.ui.note(_("new remote heads on branch '%s'\n") % branch) |
|
341 | repo.ui.note(_("new remote heads on branch '%s'\n") % branch) | |
340 | for h in dhs: |
|
342 | for h in dhs: |
@@ -275,7 +275,7 b' diverging a remote bookmark fails' | |||||
275 | pushing to http://localhost:$HGPORT2/ |
|
275 | pushing to http://localhost:$HGPORT2/ | |
276 | searching for changes |
|
276 | searching for changes | |
277 | abort: push creates new remote head c922c0139ca0! |
|
277 | abort: push creates new remote head c922c0139ca0! | |
278 | (did you forget to merge? use push -f to force) |
|
278 | (merge or see "hg help push" for details about pushing new heads) | |
279 | [255] |
|
279 | [255] | |
280 | $ hg -R ../a book |
|
280 | $ hg -R ../a book | |
281 | @ 1:0d2164f0ce0d |
|
281 | @ 1:0d2164f0ce0d | |
@@ -291,7 +291,7 b' Unrelated marker does not alter the deci' | |||||
291 | pushing to http://localhost:$HGPORT2/ |
|
291 | pushing to http://localhost:$HGPORT2/ | |
292 | searching for changes |
|
292 | searching for changes | |
293 | abort: push creates new remote head c922c0139ca0! |
|
293 | abort: push creates new remote head c922c0139ca0! | |
294 | (did you forget to merge? use push -f to force) |
|
294 | (merge or see "hg help push" for details about pushing new heads) | |
295 | [255] |
|
295 | [255] | |
296 | $ hg -R ../a book |
|
296 | $ hg -R ../a book | |
297 | @ 1:0d2164f0ce0d |
|
297 | @ 1:0d2164f0ce0d |
@@ -98,7 +98,7 b' Abort: old will still be an head because' | |||||
98 | pushing to $TESTTMP/remote (glob) |
|
98 | pushing to $TESTTMP/remote (glob) | |
99 | searching for changes |
|
99 | searching for changes | |
100 | abort: push creates new remote head 71e3228bffe1! |
|
100 | abort: push creates new remote head 71e3228bffe1! | |
101 | (did you forget to merge? use push -f to force) |
|
101 | (merge or see "hg help push" for details about pushing new heads) | |
102 | [255] |
|
102 | [255] | |
103 |
|
103 | |||
104 | old head is now public (public remote version) |
|
104 | old head is now public (public remote version) | |
@@ -127,7 +127,7 b' TODO: Not implemented yet.' | |||||
127 | # pushing to $TESTTMP/remote |
|
127 | # pushing to $TESTTMP/remote | |
128 | # searching for changes |
|
128 | # searching for changes | |
129 | # abort: push creates new remote head 71e3228bffe1! |
|
129 | # abort: push creates new remote head 71e3228bffe1! | |
130 | # (did you forget to merge? use push -f to force) |
|
130 | # (merge or see "hg help push" for details about pushing new heads) | |
131 | # [255] |
|
131 | # [255] | |
132 |
|
132 | |||
133 | old head is obsolete but replacement is not pushed |
|
133 | old head is obsolete but replacement is not pushed | |
@@ -158,7 +158,7 b' Push should abort on new head' | |||||
158 | pushing to $TESTTMP/remote (glob) |
|
158 | pushing to $TESTTMP/remote (glob) | |
159 | searching for changes |
|
159 | searching for changes | |
160 | abort: push creates new remote head d7d41ccbd4de! |
|
160 | abort: push creates new remote head d7d41ccbd4de! | |
161 | (did you forget to merge? use push -f to force) |
|
161 | (merge or see "hg help push" for details about pushing new heads) | |
162 | [255] |
|
162 | [255] | |
163 |
|
163 | |||
164 |
|
164 |
@@ -844,7 +844,7 b' appear on the remote side.' | |||||
844 | pushing to ../mu |
|
844 | pushing to ../mu | |
845 | searching for changes |
|
845 | searching for changes | |
846 | abort: push creates new remote head 435b5d83910c! |
|
846 | abort: push creates new remote head 435b5d83910c! | |
847 | (did you forget to merge? use push -f to force) |
|
847 | (merge or see "hg help push" for details about pushing new heads) | |
848 | [255] |
|
848 | [255] | |
849 | $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head |
|
849 | $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head | |
850 | pushing to ../mu |
|
850 | pushing to ../mu |
@@ -26,7 +26,7 b'' | |||||
26 | pushing to ../a |
|
26 | pushing to ../a | |
27 | searching for changes |
|
27 | searching for changes | |
28 | abort: push creates new remote head 1e108cc5548c! |
|
28 | abort: push creates new remote head 1e108cc5548c! | |
29 | (you should pull and merge or use push -f to force) |
|
29 | (pull and merge or see "hg help push" for details about pushing new heads) | |
30 | [255] |
|
30 | [255] | |
31 |
|
31 | |||
32 | $ hg push --debug ../a |
|
32 | $ hg push --debug ../a | |
@@ -41,7 +41,7 b'' | |||||
41 | new remote heads on branch 'default' |
|
41 | new remote heads on branch 'default' | |
42 | new remote head 1e108cc5548c |
|
42 | new remote head 1e108cc5548c | |
43 | abort: push creates new remote head 1e108cc5548c! |
|
43 | abort: push creates new remote head 1e108cc5548c! | |
44 | (you should pull and merge or use push -f to force) |
|
44 | (pull and merge or see "hg help push" for details about pushing new heads) | |
45 | [255] |
|
45 | [255] | |
46 |
|
46 | |||
47 | $ hg pull ../a |
|
47 | $ hg pull ../a | |
@@ -57,7 +57,7 b'' | |||||
57 | pushing to ../a |
|
57 | pushing to ../a | |
58 | searching for changes |
|
58 | searching for changes | |
59 | abort: push creates new remote head 1e108cc5548c! |
|
59 | abort: push creates new remote head 1e108cc5548c! | |
60 | (did you forget to merge? use push -f to force) |
|
60 | (merge or see "hg help push" for details about pushing new heads) | |
61 | [255] |
|
61 | [255] | |
62 |
|
62 | |||
63 | $ hg merge |
|
63 | $ hg merge | |
@@ -110,7 +110,7 b'' | |||||
110 | pushing to ../c |
|
110 | pushing to ../c | |
111 | searching for changes |
|
111 | searching for changes | |
112 | abort: push creates new remote head 6346d66eb9f5! |
|
112 | abort: push creates new remote head 6346d66eb9f5! | |
113 | (did you forget to merge? use push -f to force) |
|
113 | (merge or see "hg help push" for details about pushing new heads) | |
114 | [255] |
|
114 | [255] | |
115 |
|
115 | |||
116 | $ hg push -r 2 ../c |
|
116 | $ hg push -r 2 ../c | |
@@ -123,7 +123,7 b'' | |||||
123 | pushing to ../c |
|
123 | pushing to ../c | |
124 | searching for changes |
|
124 | searching for changes | |
125 | abort: push creates new remote head a5dda829a167! |
|
125 | abort: push creates new remote head a5dda829a167! | |
126 | (did you forget to merge? use push -f to force) |
|
126 | (merge or see "hg help push" for details about pushing new heads) | |
127 | [255] |
|
127 | [255] | |
128 |
|
128 | |||
129 | $ hg push -v -r 3 -r 4 ../c |
|
129 | $ hg push -v -r 3 -r 4 ../c | |
@@ -133,7 +133,7 b'' | |||||
133 | new remote head a5dda829a167 |
|
133 | new remote head a5dda829a167 | |
134 | new remote head ee8fbc7a0295 |
|
134 | new remote head ee8fbc7a0295 | |
135 | abort: push creates new remote head a5dda829a167! |
|
135 | abort: push creates new remote head a5dda829a167! | |
136 | (did you forget to merge? use push -f to force) |
|
136 | (merge or see "hg help push" for details about pushing new heads) | |
137 | [255] |
|
137 | [255] | |
138 |
|
138 | |||
139 | $ hg push -v -f -r 3 -r 4 ../c |
|
139 | $ hg push -v -f -r 3 -r 4 ../c | |
@@ -263,7 +263,7 b' Fail on multiple head push:' | |||||
263 | pushing to ../f |
|
263 | pushing to ../f | |
264 | searching for changes |
|
264 | searching for changes | |
265 | abort: push creates new remote head 0b715ef6ff8f on branch 'a'! |
|
265 | abort: push creates new remote head 0b715ef6ff8f on branch 'a'! | |
266 | (did you forget to merge? use push -f to force) |
|
266 | (merge or see "hg help push" for details about pushing new heads) | |
267 | [255] |
|
267 | [255] | |
268 |
|
268 | |||
269 | Push replacement head on existing branches: |
|
269 | Push replacement head on existing branches: | |
@@ -409,7 +409,7 b' multiple new heads:' | |||||
409 | pushing to h |
|
409 | pushing to h | |
410 | searching for changes |
|
410 | searching for changes | |
411 | abort: push creates new remote head 97bd0c84d346! |
|
411 | abort: push creates new remote head 97bd0c84d346! | |
412 | (you should pull and merge or use push -f to force) |
|
412 | (pull and merge or see "hg help push" for details about pushing new heads) | |
413 | [255] |
|
413 | [255] | |
414 |
|
414 | |||
415 |
|
415 | |||
@@ -481,7 +481,7 b' Prepush -r should not allow you to sneak' | |||||
481 | pushing to ../l |
|
481 | pushing to ../l | |
482 | searching for changes |
|
482 | searching for changes | |
483 | abort: push creates new remote head 451211cc22b0 on branch 'a'! |
|
483 | abort: push creates new remote head 451211cc22b0 on branch 'a'! | |
484 | (did you forget to merge? use push -f to force) |
|
484 | (merge or see "hg help push" for details about pushing new heads) | |
485 | [255] |
|
485 | [255] | |
486 |
|
486 | |||
487 | $ cd .. |
|
487 | $ cd .. | |
@@ -736,14 +736,14 b' outgoing:' | |||||
736 | pushing to inner |
|
736 | pushing to inner | |
737 | searching for changes |
|
737 | searching for changes | |
738 | abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! |
|
738 | abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! | |
739 | (did you forget to merge? use push -f to force) |
|
739 | (merge or see "hg help push" for details about pushing new heads) | |
740 | [255] |
|
740 | [255] | |
741 |
|
741 | |||
742 | $ hg push inner -r4 -r5 |
|
742 | $ hg push inner -r4 -r5 | |
743 | pushing to inner |
|
743 | pushing to inner | |
744 | searching for changes |
|
744 | searching for changes | |
745 | abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! |
|
745 | abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'! | |
746 | (did you forget to merge? use push -f to force) |
|
746 | (merge or see "hg help push" for details about pushing new heads) | |
747 | [255] |
|
747 | [255] | |
748 |
|
748 | |||
749 | $ hg in inner |
|
749 | $ hg in inner |
@@ -317,7 +317,7 b' push -f' | |||||
317 | pushing subrepo s to $TESTTMP/t/s |
|
317 | pushing subrepo s to $TESTTMP/t/s | |
318 | searching for changes |
|
318 | searching for changes | |
319 | abort: push creates new remote head 12a213df6fa9! (in subrepo s) |
|
319 | abort: push creates new remote head 12a213df6fa9! (in subrepo s) | |
320 | (did you forget to merge? use push -f to force) |
|
320 | (merge or see "hg help push" for details about pushing new heads) | |
321 | [255] |
|
321 | [255] | |
322 | $ hg push -f |
|
322 | $ hg push -f | |
323 | pushing to $TESTTMP/t (glob) |
|
323 | pushing to $TESTTMP/t (glob) | |
@@ -716,7 +716,7 b' Issue1977: multirepo push should fail if' | |||||
716 | $ hg -R repo2 ci -m3 |
|
716 | $ hg -R repo2 ci -m3 | |
717 | $ hg -q -R repo2 push |
|
717 | $ hg -q -R repo2 push | |
718 | abort: push creates new remote head cc505f09a8b2! (in subrepo s) |
|
718 | abort: push creates new remote head cc505f09a8b2! (in subrepo s) | |
719 | (did you forget to merge? use push -f to force) |
|
719 | (merge or see "hg help push" for details about pushing new heads) | |
720 | [255] |
|
720 | [255] | |
721 | $ hg -R repo update |
|
721 | $ hg -R repo update | |
722 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
722 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
General Comments 0
You need to be logged in to leave comments.
Login now