annotate tests/test-issue3084.t @ 23418:c90d9ab6777a stable

tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged' Use suffix -same for cases where file changed but content is the same - that is the case where manifestmerge doesn't detect that a file is unchanged. (The suffix -id is already used for cases where the file didn't change - that is the trivial case where manifestmerge detects that the file is unchanged.) These new tests are good but the results are bad. There shouldn't be any merge conflicts or prompts when one side didn't change.
author Mads Kiilerich <madski@unity3d.com>
date Mon, 01 Dec 2014 02:11:17 +0100
parents 442bb30171db
children a34a99181f36
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
1
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
2 $ echo "[extensions]" >> $HGRCPATH
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
3 $ echo "largefiles =" >> $HGRCPATH
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
4
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
5 Create the repository outside $HOME since largefiles write to
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
6 $HOME/.cache/largefiles.
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
7
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
8 $ hg init test
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
9 $ cd test
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
10 $ echo "root" > root
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
11 $ hg add root
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
12 $ hg commit -m "Root commit" --config extensions.largefiles=!
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
13
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
14 Ensure that .hg/largefiles isn't created before largefiles are added
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
15 #if unix-permissions
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
16 $ chmod 555 .hg
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
17 #endif
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
18 $ hg status
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
19 #if unix-permissions
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
20 $ chmod 755 .hg
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
21 #endif
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
22
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
23 $ test -f .hg/largefiles
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
24 [1]
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
25
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
26 $ echo "large" > foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
27 $ hg add --large foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
28 $ hg commit -m "Add foo as a largefile"
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
29
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
30 $ hg update -r 0
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
31 getting changed largefiles
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
32 0 largefiles updated, 1 removed
18459
c9db897d5a43 largefiles: fix largefiles+subrepo update (issue3752)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 16913
diff changeset
33 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
34
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
35 $ echo "normal" > foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
36 $ hg add foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
37 $ hg commit -m "Add foo as normal file"
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
38 created new head
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
39
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
40 Normal file in the working copy, keeping the normal version:
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
41
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
42 $ echo "n" | hg merge --config ui.interactive=Yes
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
43 remote turned local normal file foo into a largefile
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
44 use (l)argefile or keep (n)ormal file? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
45 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
46 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
47 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
48 (branch merge, don't forget to commit)
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
49
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
50 $ hg status
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
51 $ cat foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
52 normal
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
53
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
54 Normal file in the working copy, keeping the largefile version:
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
55
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
56 $ hg update -q -C
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
57 $ echo "l" | hg merge --config ui.interactive=Yes
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
58 remote turned local normal file foo into a largefile
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
59 use (l)argefile or keep (n)ormal file? l
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
60 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
61 1 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
62 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
63 (branch merge, don't forget to commit)
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
64
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
65 $ hg status
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
66 M foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
67
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
68 $ hg diff --nodates
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
69 diff -r fa129ab6b5a7 .hglf/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
70 --- /dev/null
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
71 +++ b/.hglf/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
72 @@ -0,0 +1,1 @@
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
73 +7f7097b041ccf68cc5561e9600da4655d21c6d18
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
74 diff -r fa129ab6b5a7 foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
75 --- a/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
76 +++ /dev/null
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
77 @@ -1,1 +0,0 @@
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
78 -normal
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
79
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
80 $ cat foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
81 large
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
82
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
83 Largefile in the working copy, keeping the normal version:
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
84
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
85 $ hg update -q -C -r 1
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
86 $ echo "n" | hg merge --config ui.interactive=Yes
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
87 remote turned local largefile foo into a normal file
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
88 keep (l)argefile or use (n)ormal file? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
89 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
90 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
91 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
92 (branch merge, don't forget to commit)
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
93
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
94 $ hg status
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
95 M foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
96
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
97 $ hg diff --nodates
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
98 diff -r ff521236428a .hglf/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
99 --- a/.hglf/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
100 +++ /dev/null
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
101 @@ -1,1 +0,0 @@
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
102 -7f7097b041ccf68cc5561e9600da4655d21c6d18
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
103 diff -r ff521236428a foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
104 --- /dev/null
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
105 +++ b/foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
106 @@ -0,0 +1,1 @@
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
107 +normal
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
108
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
109 $ cat foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
110 normal
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
111
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
112 Largefile in the working copy, keeping the largefile version:
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
113
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
114 $ hg update -q -C -r 1
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
115 $ echo "l" | hg merge --config ui.interactive=Yes
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
116 remote turned local largefile foo into a normal file
22589
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
117 keep (l)argefile or use (n)ormal file? l
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
118 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
119 1 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
120 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
15663
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
121 (branch merge, don't forget to commit)
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
122
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
123 $ hg status
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
124
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
125 $ cat foo
9036c7d106bf largefiles: handle merges between normal files and largefiles (issue3084)
Martin Geisler <mg@aragost.com>
parents:
diff changeset
126 large
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 15663
diff changeset
127
19954
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
128 Whatever ... commit something so we can invoke merge when updating
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
129
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
130 $ hg commit -m '3: Merge'
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
131
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
132 Updating from largefile to normal - no reason to prompt
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
133
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
134 $ hg up -r 2
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
135 getting changed largefiles
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
136 0 largefiles updated, 0 removed
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
137 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
138 $ cat foo
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
139 normal
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
140
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
141 (the update above used to leave the working dir in a very weird state - clean it
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
142 $ hg up -qr null
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
143 $ hg up -qr 2
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
144 )
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
145
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
146 Updating from normal to largefile - no reason to prompt
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
147
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
148 $ hg up -r 3
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
149 getting changed largefiles
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
150 1 largefiles updated, 0 removed
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
151 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
152 $ cat foo
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
153 large
427ce5633c1c largefiles: don't prompt for normal/largefile changes when doing plain updates
Mads Kiilerich <madski@unity3d.com>
parents: 18724
diff changeset
154
16913
f2719b387380 tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents: 15663
diff changeset
155 $ cd ..
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
156
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
157
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
158 Systematic testing of merges involving largefiles:
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
159
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
160 Ancestor: normal Parent: normal-id Parent: large result: large
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
161 Ancestor: normal Parent: normal2 Parent: large result: ?
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
162 Ancestor: large Parent: large-id Parent: normal result: normal
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
163 Ancestor: large Parent: large2 Parent: normal result: ?
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
164
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
165 All cases should try merging both ways.
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
166
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
167 Prepare test repo:
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
168
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
169 $ hg init merges
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
170 $ cd merges
21917
ac3b3a2d976d largefiles: avoid unnecessary creation of .hg/largefiles when opening lfdirstate
Matt Harbison <matt_harbison@yahoo.com>
parents: 19967
diff changeset
171
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
172 prepare cases with "normal" ancestor:
21917
ac3b3a2d976d largefiles: avoid unnecessary creation of .hg/largefiles when opening lfdirstate
Matt Harbison <matt_harbison@yahoo.com>
parents: 19967
diff changeset
173
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
174 $ hg up -qr null
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
175 $ echo normal > f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
176 $ hg ci -Aqm "normal-ancestor"
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
177 $ hg tag -l "normal-ancestor"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
178 $ touch f2
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
179 $ hg ci -Aqm "normal-id"
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
180 $ hg tag -l "normal-id"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
181 $ echo normal2 > f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
182 $ hg ci -m "normal2"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
183 $ hg tag -l "normal2"
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
184 $ echo normal > f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
185 $ hg ci -Aqm "normal-same"
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
186 $ hg tag -l "normal-same"
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
187 $ hg up -qr "normal-ancestor"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
188 $ hg rm f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
189 $ echo large > f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
190 $ hg add --large f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
191 $ hg ci -qm "large"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
192 $ hg tag -l "large"
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
193
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
194 prepare cases with "large" ancestor:
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
195
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
196 $ hg up -qr null
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
197 $ echo large > f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
198 $ hg add --large f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
199 $ hg ci -qm "large-ancestor"
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
200 $ hg tag -l "large-ancestor"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
201 $ touch f2
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
202 $ hg ci -Aqm "large-id"
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
203 $ hg tag -l "large-id"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
204 $ echo large2 > f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
205 $ hg ci -m "large2"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
206 $ hg tag -l "large2"
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
207 $ echo large > f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
208 $ hg ci -Aqm "large-same"
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
209 $ hg tag -l "large-same"
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
210 $ hg up -qr "large-ancestor"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
211 $ hg rm f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
212 $ echo normal > f
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
213 $ hg ci -qAm "normal"
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
214 $ hg tag -l "normal"
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
215
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
216 $ hg log -GT '{tags}'
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
217 @ normal tip
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
218 |
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
219 | o large-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
220 | |
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
221 | o large2
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
222 | |
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
223 | o large-id
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
224 |/
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
225 o large-ancestor
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
226
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
227 o large
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
228 |
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
229 | o normal-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
230 | |
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
231 | o normal2
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
232 | |
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
233 | o normal-id
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
234 |/
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
235 o normal-ancestor
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
236
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
237
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
238
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
239 Ancestor: normal Parent: normal-id Parent: large result: large
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
240
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
241 $ hg up -Cqr normal-id
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
242 $ hg merge -r large
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
243 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
244 1 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
245 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
246 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
247 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
248 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
249
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
250 swap
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
251
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
252 $ hg up -Cqr large
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
253 $ hg merge -r normal-id
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
254 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
255 0 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
256 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
257 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
258 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
259 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
260
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
261 Ancestor: normal Parent: normal-same Parent: large result: large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
262
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
263 $ hg up -Cqr normal-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
264 $ hg merge -r large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
265 local changed f which remote deleted
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
266 use (c)hanged version or (d)elete? c
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
267 remote turned local normal file f into a largefile
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
268 use (l)argefile or keep (n)ormal file? l
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
269 getting changed largefiles
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
270 1 largefiles updated, 0 removed
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
271 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
272 (branch merge, don't forget to commit)
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
273 $ cat f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
274 large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
275
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
276 swap
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
277
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
278 $ hg up -Cqr large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
279 $ hg merge -r normal-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
280 remote changed f which local deleted
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
281 use (c)hanged version or leave (d)eleted? c
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
282 remote turned local largefile f into a normal file
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
283 keep (l)argefile or use (n)ormal file? l
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
284 getting changed largefiles
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
285 1 largefiles updated, 0 removed
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
286 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
287 (branch merge, don't forget to commit)
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
288 $ cat f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
289 large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
290
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
291 Ancestor: normal Parent: normal2 Parent: large result: ?
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
292 (annoying extra prompt ... but it do not do any serious harm)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
293
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
294 $ hg up -Cqr normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
295 $ hg merge -r large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
296 local changed f which remote deleted
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
297 use (c)hanged version or (d)elete? c
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
298 remote turned local normal file f into a largefile
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
299 use (l)argefile or keep (n)ormal file? l
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
300 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
301 1 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
302 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
303 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
304 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
305 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
306
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
307 $ hg up -Cqr normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
308 $ ( echo c; echo n ) | hg merge -r large --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
309 local changed f 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: 22288
diff changeset
310 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: 22288
diff changeset
311 remote turned local normal file f into a largefile
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
312 use (l)argefile or keep (n)ormal file? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
313 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
314 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
315 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
316 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
317 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
318 normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
319
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
320 $ hg up -Cqr normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
321 $ echo d | hg merge -r large --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
322 local changed f 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: 22288
diff changeset
323 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: 22288
diff changeset
324 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
325 1 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
326 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
327 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
328 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
329 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
330
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
331 swap
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
332
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
333 $ hg up -Cqr large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
334 $ hg merge -r normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
335 remote changed f which local deleted
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
336 use (c)hanged version or leave (d)eleted? c
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
337 remote turned local largefile f into a normal file
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
338 keep (l)argefile or use (n)ormal file? l
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
339 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
340 1 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
341 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
342 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
343 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
344 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
345
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
346 $ hg up -Cqr large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
347 $ ( echo c; echo n ) | hg merge -r normal2 --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
348 remote changed f 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: 22288
diff changeset
349 use (c)hanged version or leave (d)eleted? c
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
350 remote turned local largefile f into a normal file
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
351 keep (l)argefile or use (n)ormal file? n
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
352 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
353 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
354 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
355 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
356 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
357 normal2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
358
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
359 $ hg up -Cqr large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
360 $ echo d | hg merge -r normal2 --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
361 remote changed f 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: 22288
diff changeset
362 use (c)hanged version or leave (d)eleted? d
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
363 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
364 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
365 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
366 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
367 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
368 large
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
369
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
370 Ancestor: large Parent: large-id Parent: normal result: normal
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
371
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
372 $ hg up -Cqr large-id
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
373 $ hg merge -r normal
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
374 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
375 0 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
376 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
377 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
378 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
379 normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
380
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
381 swap
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
382
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
383 $ hg up -Cqr normal
23417
442bb30171db tests: clean-up of largefiles tests in test-issue3084.t
Mads Kiilerich <madski@unity3d.com>
parents: 22589
diff changeset
384 $ hg merge -r large-id
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
385 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
386 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
387 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
388 normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
389
23418
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
390 Ancestor: large Parent: large-same Parent: normal result: normal
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
391
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
392 $ hg up -Cqr large-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
393 $ hg merge -r normal
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
394 local changed .hglf/f which remote deleted
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
395 use (c)hanged version or (d)elete? c
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
396 remote turned local largefile f into a normal file
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
397 keep (l)argefile or use (n)ormal file? l
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
398 getting changed largefiles
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
399 1 largefiles updated, 0 removed
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
400 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
401 (branch merge, don't forget to commit)
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
402 $ cat f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
403 large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
404
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
405 swap
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
406
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
407 $ hg up -Cqr normal
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
408 $ hg merge -r large-same
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
409 remote changed .hglf/f which local deleted
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
410 use (c)hanged version or leave (d)eleted? c
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
411 remote turned local normal file f into a largefile
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
412 use (l)argefile or keep (n)ormal file? l
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
413 getting changed largefiles
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
414 1 largefiles updated, 0 removed
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
415 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
416 (branch merge, don't forget to commit)
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
417 $ cat f
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
418 large
c90d9ab6777a tests: add test-issue3084.t cases for 'changed but same' as for 'unchanged'
Mads Kiilerich <madski@unity3d.com>
parents: 23417
diff changeset
419
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
420 Ancestor: large Parent: large2 Parent: normal result: ?
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
421 (annoying extra prompt ... but it do not do any serious harm)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
422
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
423 $ hg up -Cqr large2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
424 $ hg merge -r normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
425 local changed .hglf/f which remote deleted
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
426 use (c)hanged version or (d)elete? c
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
427 remote turned local largefile f into a normal file
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
428 keep (l)argefile or use (n)ormal file? l
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
429 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
430 1 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
431 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
432 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
433 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
434 large2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
435
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
436 $ hg up -Cqr large2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
437 $ echo d | hg merge -r normal --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
438 local changed .hglf/f 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: 22288
diff changeset
439 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: 22288
diff changeset
440 getting changed largefiles
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
441 0 largefiles updated, 0 removed
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
442 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
443 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
444 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
445 normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
446
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
447 swap
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
448
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
449 $ hg up -Cqr normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
450 $ hg merge -r large2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
451 remote changed .hglf/f which local deleted
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
452 use (c)hanged version or leave (d)eleted? c
19967
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
453 remote turned local normal file f into a largefile
e92c6524a76d largefiles: use 'remote'/'local' in merge prompts like in other merge prompts
Mads Kiilerich <madski@unity3d.com>
parents: 19966
diff changeset
454 use (l)argefile or keep (n)ormal file? l
22288
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
455 getting changed largefiles
4e2559841d6c largefiles: update largefiles even if rebase is aborted by conflict
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 21930
diff changeset
456 1 largefiles updated, 0 removed
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
457 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
458 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
459 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
460 large2
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
461
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
462 $ hg up -Cqr normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
463 $ echo d | hg merge -r large2 --config ui.interactive=Yes
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
464 remote changed .hglf/f 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: 22288
diff changeset
465 use (c)hanged version or leave (d)eleted? d
9ab18a912c44 ui: show prompt choice if input is not a tty but is forced to be interactive
Mads Kiilerich <madski@unity3d.com>
parents: 22288
diff changeset
466 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
19966
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
467 (branch merge, don't forget to commit)
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
468 $ cat f
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
469 normal
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
470
7985e3469f58 largefiles: systematic testing of merges to/from largefiles
Mads Kiilerich <madski@unity3d.com>
parents: 19954
diff changeset
471 $ cd ..