Mercurial > hg
comparison tests/test-rebase-inmemory.t @ 40815:d10b1dc13431 stable
tests: show bad path auditing in in-memory rebase
Thanks to Yuya for providing this test case in
https://bz.mercurial-scm.org/show_bug.cgi?id=5818.
Differential Revision: https://phab.mercurial-scm.org/D5368
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 04 Dec 2018 08:56:43 -0800 |
parents | 9b1d5eea07f9 |
children | 1c8c54cf9725 |
comparison
equal
deleted
inserted
replaced
40814:9b1d5eea07f9 | 40815:d10b1dc13431 |
---|---|
253 starting dry-run rebase; repository will not be changed | 253 starting dry-run rebase; repository will not be changed |
254 rebasing 3:844a7de3e617 "c" | 254 rebasing 3:844a7de3e617 "c" |
255 abort: error: file 'c' cannot be written because 'c/' is a folder in 755f0104af9b (containing 1 entries: c/c) | 255 abort: error: file 'c' cannot be written because 'c/' is a folder in 755f0104af9b (containing 1 entries: c/c) |
256 [255] | 256 [255] |
257 | 257 |
258 $ cd .. | |
259 | |
260 Test path auditing (issue5818) | |
261 | |
262 $ mkdir lib_ | |
263 $ ln -s lib_ lib | |
264 $ hg init repo | |
265 $ cd repo | |
266 $ mkdir -p ".$TESTTMP/lib" | |
267 $ touch ".$TESTTMP/lib/a" | |
268 $ hg add ".$TESTTMP/lib/a" | |
269 $ hg ci -m 'a' | |
270 | |
271 $ touch ".$TESTTMP/lib/b" | |
272 $ hg add ".$TESTTMP/lib/b" | |
273 $ hg ci -m 'b' | |
274 | |
275 $ hg up -q '.^' | |
276 $ touch ".$TESTTMP/lib/c" | |
277 $ hg add ".$TESTTMP/lib/c" | |
278 $ hg ci -m 'c' | |
279 created new head | |
280 $ hg rebase -s 1 -d . | |
281 rebasing 1:* "b" (glob) | |
282 abort: path '*/lib/b' traverses symbolic link '*/lib' (glob) | |
283 [255] | |
258 $ cd .. | 284 $ cd .. |
259 | 285 |
260 Test dry-run rebasing | 286 Test dry-run rebasing |
261 | 287 |
262 $ hg init repo3 | 288 $ hg init repo3 |