Show More
@@ -296,31 +296,31 b' rename to bar' | |||||
296 | EOF |
|
296 | EOF | |
297 | cd .. |
|
297 | cd .. | |
298 |
|
298 | |||
299 | echo '% test import with similarity (issue295)' |
|
299 | echo '% test import with similarity and git and strip (issue295 et al.)' | |
300 | hg init sim |
|
300 | hg init sim | |
301 | cd sim |
|
301 | cd sim | |
302 | echo 'this is a test' > a |
|
302 | echo 'this is a test' > a | |
303 | hg ci -Ama |
|
303 | hg ci -Ama | |
304 | cat > ../rename.diff <<EOF |
|
304 | cat > ../rename.diff <<EOF | |
305 | diff --git a/a b/a |
|
305 | diff --git a/foo/a b/foo/a | |
306 | deleted file mode 100644 |
|
306 | deleted file mode 100644 | |
307 | --- a/a |
|
307 | --- a/foo/a | |
308 | +++ /dev/null |
|
308 | +++ /dev/null | |
309 | @@ -1,1 +0,0 @@ |
|
309 | @@ -1,1 +0,0 @@ | |
310 | -this is a test |
|
310 | -this is a test | |
311 | diff --git a/b b/b |
|
311 | diff --git a/foo/b b/foo/b | |
312 | new file mode 100644 |
|
312 | new file mode 100644 | |
313 | --- /dev/null |
|
313 | --- /dev/null | |
314 | +++ b/b |
|
314 | +++ b/foo/b | |
315 | @@ -0,0 +1,2 @@ |
|
315 | @@ -0,0 +1,2 @@ | |
316 | +this is a test |
|
316 | +this is a test | |
317 | +foo |
|
317 | +foo | |
318 | EOF |
|
318 | EOF | |
319 | hg import --no-commit -v -s 1 ../rename.diff |
|
319 | hg import --no-commit -v -s 1 ../rename.diff -p2 | |
320 | hg st -C |
|
320 | hg st -C | |
321 | hg revert -a |
|
321 | hg revert -a | |
322 | rm b |
|
322 | rm b | |
323 | hg import --no-commit -v -s 100 ../rename.diff |
|
323 | hg import --no-commit -v -s 100 ../rename.diff -p2 | |
324 | hg st -C |
|
324 | hg st -C | |
325 | cd .. |
|
325 | cd .. | |
326 |
|
326 |
@@ -279,7 +279,7 b' bb' | |||||
279 | % test paths outside repo root |
|
279 | % test paths outside repo root | |
280 | applying patch from stdin |
|
280 | applying patch from stdin | |
281 | abort: ../outside/foo not under root |
|
281 | abort: ../outside/foo not under root | |
282 | % test import with similarity (issue295) |
|
282 | % test import with similarity and git and strip (issue295 et al.) | |
283 | adding a |
|
283 | adding a | |
284 | applying ../rename.diff |
|
284 | applying ../rename.diff | |
285 | patching file a |
|
285 | patching file a |
General Comments 0
You need to be logged in to leave comments.
Login now