Mercurial > hg
diff tests/test-rename.out @ 1976:df8416346bb7
Enable path validation for copy, rename, debugwalk and other canonpath users.
This fixed the last bit of issue134.
Added some tests to test-rename and test-walk.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 19 Mar 2006 14:53:58 +0100 |
parents | 64df4220b349 |
children | b2ae81a7df29 |
line wrap: on
line diff
--- a/tests/test-rename.out Sat Mar 18 09:51:25 2006 -0800 +++ b/tests/test-rename.out Sun Mar 19 14:53:58 2006 +0100 @@ -254,3 +254,19 @@ R d1/b # idempotent renames (d1/b -> d1/bb followed by d1/bb -> d1/b) M d1/b +# check illegal path components +abort: path contains illegal component: .hg/foo + +abort: ../foo not under root +abort: path contains illegal component: .hg/foo + +! d1/d11/a1 +abort: path contains illegal component: .hg/a1 + +abort: ../a1 not under root +abort: path contains illegal component: .hg/a1 + +! d1/d11/a1 +abort: path contains illegal component: .hg/foo + +abort: ../../../foo not under root