##// END OF EJS Templates
test-import: test git patch import with strip...
Mads Kiilerich -
r11407:f5be4409 default
parent child Browse files
Show More
@@ -296,31 +296,31 b' rename to bar'
296 296 EOF
297 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 300 hg init sim
301 301 cd sim
302 302 echo 'this is a test' > a
303 303 hg ci -Ama
304 304 cat > ../rename.diff <<EOF
305 diff --git a/a b/a
305 diff --git a/foo/a b/foo/a
306 306 deleted file mode 100644
307 --- a/a
307 --- a/foo/a
308 308 +++ /dev/null
309 309 @@ -1,1 +0,0 @@
310 310 -this is a test
311 diff --git a/b b/b
311 diff --git a/foo/b b/foo/b
312 312 new file mode 100644
313 313 --- /dev/null
314 +++ b/b
314 +++ b/foo/b
315 315 @@ -0,0 +1,2 @@
316 316 +this is a test
317 317 +foo
318 318 EOF
319 hg import --no-commit -v -s 1 ../rename.diff
319 hg import --no-commit -v -s 1 ../rename.diff -p2
320 320 hg st -C
321 321 hg revert -a
322 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 324 hg st -C
325 325 cd ..
326 326
@@ -279,7 +279,7 b' bb'
279 279 % test paths outside repo root
280 280 applying patch from stdin
281 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 283 adding a
284 284 applying ../rename.diff
285 285 patching file a
General Comments 0
You need to be logged in to leave comments. Login now