mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 23:07:18 +03:00
00ecfbb16c
Summary: A lot of tests are passing with the new test runner. This is done by `./edit-feature-header.py debugruntest` and paste the `Passed:` section from `hg debugruntest -v test-*.t` output. Note: some tests fail with this but pass with debugruntest. They will be investigated as follow-up. Differential Revision: D34931992 fbshipit-source-id: 99abc3d9800bb1dd3487dbfa15d715c0bd3ba878
36 lines
865 B
Perl
36 lines
865 B
Perl
#chg-compatible
|
|
#debugruntest-compatible
|
|
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
$ hg init test
|
|
$ cd test
|
|
$ echo foo > file
|
|
$ hg commit -Aqm "Add file"
|
|
|
|
Adding a symlink without the extension works
|
|
$ ln -s file link
|
|
$ f link
|
|
link -> file
|
|
$ hg add link
|
|
$ hg commit -m "Add link"
|
|
|
|
Adding a symlink with the extension works also
|
|
$ ln -s file link2
|
|
$ f link2
|
|
link2 -> file
|
|
$ hg --config extensions.disablesymlinks= add link2
|
|
$ hg --config extensions.disablesymlinks= commit -m "Add link2"
|
|
|
|
Checking out a commit with the extension does not produce a symlink
|
|
$ hg checkout null
|
|
0 files updated, 0 files merged, 3 files removed, 0 files unresolved
|
|
$ hg checkout tip --config extensions.disablesymlinks=
|
|
3 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ f file link link2
|
|
file
|
|
link
|
|
link2
|
|
$ cat link
|
|
file (no-eol)
|