Mercurial > hg
comparison tests/test-rebase-inmemory.t @ 40816:1c8c54cf9725 stable 4.8.1
rebase: fix path auditing to audit path relative to repo root (issue5818)
Before this patch, when rebasing a file called "foo/bar", we would
check e.g. if "/foo" (i.e. rooted at the file system root) was a
symlink.
Differential Revision: https://phab.mercurial-scm.org/D5361
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 20 Nov 2018 14:43:27 -0800 |
parents | d10b1dc13431 |
children | 23dc23897248 |
comparison
equal
deleted
inserted
replaced
40815:d10b1dc13431 | 40816:1c8c54cf9725 |
---|---|
277 $ hg add ".$TESTTMP/lib/c" | 277 $ hg add ".$TESTTMP/lib/c" |
278 $ hg ci -m 'c' | 278 $ hg ci -m 'c' |
279 created new head | 279 created new head |
280 $ hg rebase -s 1 -d . | 280 $ hg rebase -s 1 -d . |
281 rebasing 1:* "b" (glob) | 281 rebasing 1:* "b" (glob) |
282 abort: path '*/lib/b' traverses symbolic link '*/lib' (glob) | 282 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-rebase.hg (glob) |
283 [255] | |
284 $ cd .. | 283 $ cd .. |
285 | 284 |
286 Test dry-run rebasing | 285 Test dry-run rebasing |
287 | 286 |
288 $ hg init repo3 | 287 $ hg init repo3 |