~ubuntu-branches/ubuntu/wily/mercurial/wily

« back to all changes in this revision

Viewing changes to tests/test-push-warn.t

  • Committer: Package Import Robot
  • Author(s): Javi Merino
  • Date: 2013-11-01 23:19:57 UTC
  • mfrom: (1.2.38) (9.1.16 experimental)
  • Revision ID: package-import@ubuntu.com-20131101231957-hs70pwpinavlz3t6
Tags: 2.8-1
* New upstream release
* Fix mercurial-git and hgsubversion autopkgtest by loading the
  appropriate extension
* Bump standards-version to 3.9.5 (no change needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
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
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
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
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
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
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:
354
354
  adding file changes
355
355
  added 1 changesets with 1 changes to 1 files
356
356
 
 
357
Pushing muliple headed new branch:
 
358
 
 
359
  $ echo 14 > foo
 
360
  $ hg -q branch f
 
361
  $ hg -q ci -m 14
 
362
  $ echo 15 > foo
 
363
  $ hg -q ci -m 15
 
364
  $ hg -q up 14
 
365
  $ echo 16 > foo
 
366
  $ hg -q ci -m 16
 
367
  $ hg push --branch f --new-branch ../f
 
368
  pushing to ../f
 
369
  searching for changes
 
370
  abort: push creates multiple headed new branch 'f'
 
371
  (merge or see "hg help push" for details about pushing new heads)
 
372
  [255]
 
373
  $ hg push --branch f --new-branch --force ../f
 
374
  pushing to ../f
 
375
  searching for changes
 
376
  adding changesets
 
377
  adding manifests
 
378
  adding file changes
 
379
  added 3 changesets with 3 changes to 1 files (+1 heads)
357
380
 
358
381
Checking prepush logic does not allow silently pushing
359
382
multiple new heads:
386
409
  pushing to h
387
410
  searching for changes
388
411
  abort: push creates new remote head 97bd0c84d346!
389
 
  (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)
390
413
  [255]
391
414
 
392
415
 
458
481
  pushing to ../l
459
482
  searching for changes
460
483
  abort: push creates new remote head 451211cc22b0 on branch 'a'!
461
 
  (did you forget to merge? use push -f to force)
 
484
  (merge or see "hg help push" for details about pushing new heads)
462
485
  [255]
463
486
 
464
487
  $ cd ..
713
736
  pushing to inner
714
737
  searching for changes
715
738
  abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'!
716
 
  (did you forget to merge? use push -f to force)
 
739
  (merge or see "hg help push" for details about pushing new heads)
717
740
  [255]
718
741
 
719
742
  $ hg push inner -r4 -r5
720
743
  pushing to inner
721
744
  searching for changes
722
745
  abort: push creates new remote head 7d0f4fb6cf04 on branch 'A'!
723
 
  (did you forget to merge? use push -f to force)
 
746
  (merge or see "hg help push" for details about pushing new heads)
724
747
  [255]
725
748
 
726
749
  $ hg in inner