Skip to content
Snippets Groups Projects
Commit b0a6084f authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

tests: show failure to `hg add -I` a dir->symlink transition

parent f816ca29
No related branches found
No related tags found
1 merge request!714fix `hg add -I` of a dir->symlink transition
......@@ -188,6 +188,39 @@
$ cd ..
== symlinks and add with --include ==
directory moved and symlinked
$ hg init add-include
$ cd add-include
$ mkdir foo
$ touch foo/a
$ hg ci -Ama
adding foo/a
$ hg mv foo bar
moving foo/a to bar/a
$ ln -s bar foo
$ hg status
A bar/a
R foo/a
? foo
can add with --include
$ hg add -I foo
adding foo
adding foo/a (known-bad-output !)
abort: file 'foo' in dirstate clashes with 'foo/a' (known-bad-output !)
[255]
$ hg status
A bar/a
A foo (missing-correct-output !)
R foo/a
? foo (known-bad-output !)
$ cd ..
== root of repository is symlinked ==
$ hg init root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment