author | Siddharth Agarwal <sid0@fb.com> |
Wed, 25 Nov 2015 14:26:46 -0800 | |
changeset 27136 | 29b08ca680b0 |
parent 27126 | 72b4e1bf8f28 |
child 27137 | 25e4b2f000c5 |
permissions | -rw-r--r-- |
12328
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
1 |
Test for |
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
2 |
b5605d88dc27: Make ui.prompt repeat on "unrecognized response" again |
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
3 |
(issue897) |
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
4 |
|
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
5 |
840e2b315c1f: Fix misleading error and prompts during update/merge |
b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12259
diff
changeset
|
6 |
(issue556) |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
7 |
|
26895
fc41f9ffd4a4
test-merge-prompt.t: unset HGMERGE
Siddharth Agarwal <sid0@fb.com>
parents:
26850
diff
changeset
|
8 |
Make sure HGMERGE doesn't interfere with the test |
fc41f9ffd4a4
test-merge-prompt.t: unset HGMERGE
Siddharth Agarwal <sid0@fb.com>
parents:
26850
diff
changeset
|
9 |
$ unset HGMERGE |
fc41f9ffd4a4
test-merge-prompt.t: unset HGMERGE
Siddharth Agarwal <sid0@fb.com>
parents:
26850
diff
changeset
|
10 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
11 |
$ status() { |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
12 |
> echo "--- status ---" |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
13 |
> hg st -A file1 file2 file3 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
14 |
> echo "--- resolve --list ---" |
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
15 |
> hg resolve --list file1 file2 file3 |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
16 |
> echo "--- debugmergestate ---" |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
17 |
> hg debugmergestate |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
18 |
> for file in file1 file2 file3; do |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
19 |
> if [ -f $file ]; then |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
20 |
> echo "--- $file ---" |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
21 |
> cat $file |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
22 |
> else |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
23 |
> echo "*** $file does not exist" |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
24 |
> fi |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
25 |
> done |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
26 |
> } |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
27 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
28 |
$ hg init |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
29 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
30 |
$ echo 1 > file1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
31 |
$ echo 2 > file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
32 |
$ echo 3 > file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
33 |
$ hg ci -Am 'added files' |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
34 |
adding file1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
35 |
adding file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
36 |
adding file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
37 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
38 |
$ hg rm file1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
39 |
$ echo changed >> file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
40 |
$ echo changed1 >> file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
41 |
$ hg ci -m 'removed file1, changed file2, changed file3' |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
42 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
43 |
$ hg co 0 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
44 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
45 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
46 |
$ echo changed >> file1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
47 |
$ hg rm file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
48 |
$ echo changed2 >> file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
49 |
$ hg ci -m 'changed file1, removed file2, changed file3' |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
50 |
created new head |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
51 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
52 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
53 |
Non-interactive merge: |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
54 |
|
12365
22f3353bcc36
tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
55 |
$ hg merge -y |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
56 |
local changed file1 which remote deleted |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
57 |
use (c)hanged version or (d)elete? c |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
58 |
remote changed file2 which local deleted |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
59 |
use (c)hanged version or leave (d)eleted? c |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
60 |
merging file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
61 |
warning: conflicts while merging file3! (edit, then use 'hg resolve --mark') |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
62 |
1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
63 |
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
64 |
[1] |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
65 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
66 |
$ status |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
67 |
--- status --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
68 |
M file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
69 |
M file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
70 |
C file1 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
71 |
--- resolve --list --- |
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
72 |
U file3 |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
73 |
--- debugmergestate --- |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
74 |
* version 2 records |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
75 |
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
76 |
other: 10f9a0a634e82080907e62f075ab119cbc565ea6 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
77 |
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
78 |
local path: file3 (flags "") |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
79 |
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
80 |
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
81 |
--- file1 --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
82 |
1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
83 |
changed |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
84 |
--- file2 --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
85 |
2 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
86 |
changed |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
87 |
--- file3 --- |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
88 |
3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
89 |
<<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
90 |
changed2 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
91 |
======= |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
92 |
changed1 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
93 |
>>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
94 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
95 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
96 |
Interactive merge: |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
97 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
98 |
$ hg co -C |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
99 |
1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
100 |
|
12365
22f3353bcc36
tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
101 |
$ hg merge --config ui.interactive=true <<EOF |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
102 |
> c |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
103 |
> d |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
104 |
> EOF |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
105 |
local changed file1 which remote deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
106 |
use (c)hanged version or (d)elete? c |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
107 |
remote changed file2 which local deleted |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
108 |
use (c)hanged version or leave (d)eleted? d |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
109 |
merging file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
110 |
warning: conflicts while merging file3! (edit, then use 'hg resolve --mark') |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
111 |
0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
112 |
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
113 |
[1] |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
114 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
115 |
$ status |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
116 |
--- status --- |
15521
117f9190c1ba
tests: hide 'No such file or directory' messages
Mads Kiilerich <mads@kiilerich.com>
parents:
12365
diff
changeset
|
117 |
file2: * (glob) |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
118 |
M file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
119 |
C file1 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
120 |
--- resolve --list --- |
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
121 |
U file3 |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
122 |
--- debugmergestate --- |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
123 |
* version 2 records |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
124 |
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
125 |
other: 10f9a0a634e82080907e62f075ab119cbc565ea6 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
126 |
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
127 |
local path: file3 (flags "") |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
128 |
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
129 |
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
130 |
--- file1 --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
131 |
1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
132 |
changed |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
133 |
*** file2 does not exist |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
134 |
--- file3 --- |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
135 |
3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
136 |
<<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
137 |
changed2 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
138 |
======= |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
139 |
changed1 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
140 |
>>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3 |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
141 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
142 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
143 |
Interactive merge with bad input: |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
144 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
145 |
$ hg co -C |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
146 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
147 |
|
12365
22f3353bcc36
tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
148 |
$ hg merge --config ui.interactive=true <<EOF |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
149 |
> foo |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
150 |
> bar |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
151 |
> d |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
152 |
> baz |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
153 |
> c |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
154 |
> EOF |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
155 |
local changed file1 which remote deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
156 |
use (c)hanged version or (d)elete? foo |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
157 |
unrecognized response |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
158 |
local changed file1 which remote deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
159 |
use (c)hanged version or (d)elete? bar |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
160 |
unrecognized response |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
161 |
local changed file1 which remote deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
162 |
use (c)hanged version or (d)elete? d |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
163 |
remote changed file2 which local deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
164 |
use (c)hanged version or leave (d)eleted? baz |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
165 |
unrecognized response |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
166 |
remote changed file2 which local deleted |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
167 |
use (c)hanged version or leave (d)eleted? c |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
168 |
merging file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
169 |
warning: conflicts while merging file3! (edit, then use 'hg resolve --mark') |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
170 |
1 files updated, 0 files merged, 1 files removed, 1 files unresolved |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
171 |
use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
172 |
[1] |
5672
8a65ea986755
Tests for b5605d88dc27 and 840e2b315c1f (interactive prompts during merge)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff
changeset
|
173 |
|
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
174 |
$ status |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
175 |
--- status --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
176 |
M file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
177 |
M file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
178 |
R file1 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
179 |
--- resolve --list --- |
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
180 |
U file3 |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
181 |
--- debugmergestate --- |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
182 |
* version 2 records |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
183 |
local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
184 |
other: 10f9a0a634e82080907e62f075ab119cbc565ea6 |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
185 |
file: file3 (record type "F", state "u", hash d5b0a58bc47161b1b8a831084b366f757c4f0b11) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
186 |
local path: file3 (flags "") |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
187 |
ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
188 |
other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
189 |
*** file1 does not exist |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
190 |
--- file2 --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
191 |
2 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
192 |
changed |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
193 |
--- file3 --- |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
194 |
3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
195 |
<<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
196 |
changed2 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
197 |
======= |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
198 |
changed1 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
199 |
>>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
200 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
201 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
202 |
Interactive merge with not enough input: |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
203 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
204 |
$ hg co -C |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
205 |
2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
206 |
|
12365
22f3353bcc36
tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
207 |
$ hg merge --config ui.interactive=true <<EOF |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
208 |
> d |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
209 |
> EOF |
18543
c8ba98bf0e71
merge: don't indent "local changed %s which remote deleted" prompt
Mads Kiilerich <madski@unity3d.com>
parents:
15521
diff
changeset
|
210 |
local changed file1 which remote deleted |
22589
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
211 |
use (c)hanged version or (d)elete? d |
9ab18a912c44
ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents:
18543
diff
changeset
|
212 |
remote changed file2 which local deleted |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
213 |
use (c)hanged version or leave (d)eleted? abort: response expected |
12365
22f3353bcc36
tests: cleanup exit code handling in unified tests
Matt Mackall <mpm@selenic.com>
parents:
12328
diff
changeset
|
214 |
[255] |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
215 |
|
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
216 |
$ status |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
217 |
--- status --- |
15521
117f9190c1ba
tests: hide 'No such file or directory' messages
Mads Kiilerich <mads@kiilerich.com>
parents:
12365
diff
changeset
|
218 |
file2: * (glob) |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
219 |
C file1 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
220 |
C file3 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
221 |
--- resolve --list --- |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
222 |
--- debugmergestate --- |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
223 |
no merge state found |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
224 |
--- file1 --- |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
225 |
1 |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
226 |
changed |
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
227 |
*** file2 does not exist |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
228 |
--- file3 --- |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
229 |
3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
230 |
changed2 |
12259
7b05cb9ac6d2
tests: unify test-merge-prompt
Adrian Buehlmann <adrian@cadifra.com>
parents:
5672
diff
changeset
|
231 |
|
26850
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
232 |
Non-interactive linear update |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
233 |
|
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
234 |
$ hg co -C 0 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
235 |
3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
26850
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
236 |
$ echo changed >> file1 |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
237 |
$ hg rm file2 |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
238 |
$ hg update 1 -y |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
239 |
local changed file1 which remote deleted |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
240 |
use (c)hanged version or (d)elete? c |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
241 |
remote changed file2 which local deleted |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
242 |
use (c)hanged version or leave (d)eleted? c |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
243 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
26850
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
244 |
$ status |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
245 |
--- status --- |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
246 |
A file1 |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
247 |
C file2 |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
248 |
C file3 |
27126
72b4e1bf8f28
test-merge-changedelete.t: add resolve --list output
Siddharth Agarwal <sid0@fb.com>
parents:
27125
diff
changeset
|
249 |
--- resolve --list --- |
27136
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
250 |
--- debugmergestate --- |
29b08ca680b0
test-merge-changedelete.t: print out debugmergestate
Siddharth Agarwal <sid0@fb.com>
parents:
27126
diff
changeset
|
251 |
no merge state found |
26850
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
252 |
--- file1 --- |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
253 |
1 |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
254 |
changed |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
255 |
--- file2 --- |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
256 |
2 |
00209e38e7d9
test-merge-prompt.t: add tests for linear updates + change/delete conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
22589
diff
changeset
|
257 |
changed |
27125
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
258 |
--- file3 --- |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
259 |
3 |
969ca40cad1d
test-merge-changedelete.t: add a file with regular merge conflicts
Siddharth Agarwal <sid0@fb.com>
parents:
26947
diff
changeset
|
260 |
changed1 |