comparison tests/test-evolve-wdir.t @ 6100:46858e6f8b99

tests: add a remaining test on evolving obsolete wdir parent The obsolete parent was split in multiple successors. As one can see after updating to the common obsolete parent it prints a message suggesting to run `hg evolve` to update to its tipmost successor. But, given suggestion doesn't work as expected and instead return error saying parent is obsolete with multiple successor. This will be fixed in upcoming patches.
author Sushil khanchi <sushilkhanchi97@gmail.com>
date Tue, 27 Jul 2021 18:21:34 +0530
parents c5dfbbe4363d
children 431bf23df350
comparison
equal deleted inserted replaced
6099:435dfa125d89 6100:46858e6f8b99
117 117
118 118
119 D. Obsolete wdp with multiple successor (split rewriting) 119 D. Obsolete wdp with multiple successor (split rewriting)
120 ---------------------------------------------------------- 120 ----------------------------------------------------------
121 121
122 #TODO: yet to write tests for this case 122 when split csets are on a single topological branch
123 $ hg up -r 'desc(c_A)'
124 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
125 $ echo X > X; echo Y > Y; echo Z > Z;
126 $ hg ci -Am 'c_XYZ'
127 adding X
128 adding Y
129 adding Z
130 created new head
131 $ hg split -r "desc(c_XYZ)" -d "0 0" --config ui.interactive=True << EOF
132 > f
133 > d
134 > y
135 > f
136 > d
137 > c
138 > EOF
139 0 files updated, 0 files merged, 3 files removed, 0 files unresolved
140 adding X
141 adding Y
142 adding Z
143 diff --git a/X b/X
144 new file mode 100644
145 examine changes to 'X'?
146 (enter ? for help) [Ynesfdaq?] f
147
148 diff --git a/Y b/Y
149 new file mode 100644
150 examine changes to 'Y'?
151 (enter ? for help) [Ynesfdaq?] d
152
153 created new head
154 continue splitting? [Ycdq?] y
155 diff --git a/Y b/Y
156 new file mode 100644
157 examine changes to 'Y'?
158 (enter ? for help) [Ynesfdaq?] f
159
160 diff --git a/Z b/Z
161 new file mode 100644
162 examine changes to 'Z'?
163 (enter ? for help) [Ynesfdaq?] d
164
165 continue splitting? [Ycdq?] c
166
167 $ hg up -r 'min(desc(c_XYZ))' --hidden
168 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
169 updated to hidden changeset c8b6cf6ce628
170 (hidden revision 'c8b6cf6ce628' was split as: 1eb7dbbcecbd, b99a391251cc and 1 more)
171 working directory parent is obsolete! (c8b6cf6ce628)
172 (use 'hg evolve' to update to its tipmost successor: 1eb7dbbcecbd, b99a391251cc and 1 more)
173
174 $ hg evolve
175 parent is obsolete with multiple successors:
176 [6] c_XYZ
177 [7] c_XYZ
178 [8] c_XYZ
179 [2]