##// END OF EJS Templates
tests: demonstrate crash when committing subset of copies to changeset...
Martin von Zweigbergk -
r43124:170b070e default
parent child Browse files
Show More
@@ -10,6 +10,7 b''
10 > showcopies = log -r . -T '{file_copies % "{source} -> {name}\n"}'
10 > showcopies = log -r . -T '{file_copies % "{source} -> {name}\n"}'
11 > [extensions]
11 > [extensions]
12 > rebase =
12 > rebase =
13 > split =
13 > EOF
14 > EOF
14
15
15 Check that copies are recorded correctly
16 Check that copies are recorded correctly
@@ -185,3 +186,33 b' Test rebasing a commit with copy informa'
185 a
186 a
186 R a
187 R a
187 $ cd ..
188 $ cd ..
189
190 Test splitting a commit
191
192 $ hg init split
193 $ cd split
194 $ echo a > a
195 $ echo b > b
196 $ hg ci -Aqm 'add a and b'
197 $ echo a2 > a
198 $ hg mv b c
199 $ hg ci -m 'modify a, move b to c'
200 $ (hg --config ui.interactive=yes split 2>&1 | grep mercurial.error) <<EOF
201 > y
202 > y
203 > n
204 > y
205 > EOF
206 mercurial.error.ProgrammingError: some copy targets missing from file list
207 $ cd ..
208
209 Test committing half a rename
210
211 $ hg init partial
212 $ cd partial
213 $ echo a > a
214 $ hg ci -Aqm 'add a'
215 $ hg mv a b
216 $ hg ci -m 'remove a' a 2>&1 | grep mercurial.error
217 mercurial.error.ProgrammingError: some copy targets missing from file list
218 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now