##// END OF EJS Templates
push: hide description about "-f" in the hint to prevent from using it easily...
FUJIWARA Katsunori -
r19934:bfc6ed89 default
parent child Browse files
Show More
@@ -330,11 +330,13 def checkheads(repo, remote, outgoing, r
330 330 error = _("push creates new remote head %s!"
331 331 ) % short(dhs[0])
332 332 if heads[2]: # unsynced
333 hint = _("you should pull and merge or "
334 "use push -f to force")
333 hint = _("pull and merge or"
334 " see \"hg help push\" for details about"
335 " pushing new heads")
335 336 else:
336 hint = _("did you forget to merge? "
337 "use push -f to force")
337 hint = _("merge or"
338 " see \"hg help push\" for details about"
339 " pushing new heads")
338 340 if branch is not None:
339 341 repo.ui.note(_("new remote heads on branch '%s'\n") % branch)
340 342 for h in dhs:
@@ -275,7 +275,7 diverging a remote bookmark fails
275 275 pushing to http://localhost:$HGPORT2/
276 276 searching for changes
277 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 279 [255]
280 280 $ hg -R ../a book
281 281 @ 1:0d2164f0ce0d
@@ -291,7 +291,7 Unrelated marker does not alter the deci
291 291 pushing to http://localhost:$HGPORT2/
292 292 searching for changes
293 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 295 [255]
296 296 $ hg -R ../a book
297 297 @ 1:0d2164f0ce0d
@@ -98,7 +98,7 Abort: old will still be an head because
98 98 pushing to $TESTTMP/remote (glob)
99 99 searching for changes
100 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 102 [255]
103 103
104 104 old head is now public (public remote version)
@@ -127,7 +127,7 TODO: Not implemented yet.
127 127 # pushing to $TESTTMP/remote
128 128 # searching for changes
129 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 131 # [255]
132 132
133 133 old head is obsolete but replacement is not pushed
@@ -158,7 +158,7 Push should abort on new head
158 158 pushing to $TESTTMP/remote (glob)
159 159 searching for changes
160 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 162 [255]
163 163
164 164
@@ -844,7 +844,7 appear on the remote side.
844 844 pushing to ../mu
845 845 searching for changes
846 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 848 [255]
849 849 $ hg push -fr 435b5d83910c ../mu # because the push will create new visible head
850 850 pushing to ../mu
@@ -26,7 +26,7
26 26 pushing to ../a
27 27 searching for changes
28 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 30 [255]
31 31
32 32 $ hg push --debug ../a
@@ -41,7 +41,7
41 41 new remote heads on branch 'default'
42 42 new remote head 1e108cc5548c
43 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 45 [255]
46 46
47 47 $ hg pull ../a
@@ -57,7 +57,7
57 57 pushing to ../a
58 58 searching for changes
59 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 61 [255]
62 62
63 63 $ hg merge
@@ -110,7 +110,7
110 110 pushing to ../c
111 111 searching for changes
112 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 114 [255]
115 115
116 116 $ hg push -r 2 ../c
@@ -123,7 +123,7
123 123 pushing to ../c
124 124 searching for changes
125 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 127 [255]
128 128
129 129 $ hg push -v -r 3 -r 4 ../c
@@ -133,7 +133,7
133 133 new remote head a5dda829a167
134 134 new remote head ee8fbc7a0295
135 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 137 [255]
138 138
139 139 $ hg push -v -f -r 3 -r 4 ../c
@@ -263,7 +263,7 Fail on multiple head push:
263 263 pushing to ../f
264 264 searching for changes
265 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 267 [255]
268 268
269 269 Push replacement head on existing branches:
@@ -409,7 +409,7 multiple new heads:
409 409 pushing to h
410 410 searching for changes
411 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 413 [255]
414 414
415 415
@@ -481,7 +481,7 Prepush -r should not allow you to sneak
481 481 pushing to ../l
482 482 searching for changes
483 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 485 [255]
486 486
487 487 $ cd ..
@@ -736,14 +736,14 outgoing:
736 736 pushing to inner
737 737 searching for changes
738 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 740 [255]
741 741
742 742 $ hg push inner -r4 -r5
743 743 pushing to inner
744 744 searching for changes
745 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 747 [255]
748 748
749 749 $ hg in inner
@@ -317,7 +317,7 push -f
317 317 pushing subrepo s to $TESTTMP/t/s
318 318 searching for changes
319 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 321 [255]
322 322 $ hg push -f
323 323 pushing to $TESTTMP/t (glob)
@@ -716,7 +716,7 Issue1977: multirepo push should fail if
716 716 $ hg -R repo2 ci -m3
717 717 $ hg -q -R repo2 push
718 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 720 [255]
721 721 $ hg -R repo update
722 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