mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
28 lines
650 B
Perl
28 lines
650 B
Perl
#require rmcwd normal-layout
|
|
|
|
Note: With buck build the hg script can be a wrapper that runs shell commands.
|
|
That can print extra noisy outputs like " shell-init: error retrieving current
|
|
directory: getcwd: cannot access parent directories". So we skip this test for
|
|
buck build.
|
|
|
|
(rmcwd is incompatible with Python tests right now - os.getcwd() will fail)
|
|
|
|
$ A=$TESTTMP/a
|
|
$ mkdir $A
|
|
$ cd $A
|
|
|
|
Removed cwd
|
|
|
|
$ rmdir $A
|
|
|
|
$ hg debug-args
|
|
abort: cannot get current directory: * (glob)
|
|
[74]
|
|
|
|
Recreated cwd
|
|
|
|
$ mkdir $A
|
|
$ hg debug-args a
|
|
(warning: the current directory was recreated; consider running 'cd $PWD' to fix your shell)
|
|
["a"]
|