2019-11-13 02:33:03 +03:00
|
|
|
#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.
|
2019-10-24 23:38:34 +03:00
|
|
|
|
|
|
|
(rmcwd is incompatible with Python tests right now - os.getcwd() will fail)
|
|
|
|
|
|
|
|
$ A=$TESTTMP/a
|
|
|
|
$ mkdir $A
|
|
|
|
$ cd $A
|
|
|
|
|
|
|
|
Removed cwd
|
|
|
|
|
2019-10-30 04:50:58 +03:00
|
|
|
$ rmdir $A
|
|
|
|
|
2019-10-24 23:38:34 +03:00
|
|
|
$ hg debug-args
|
|
|
|
abort: cannot get current directory: * (glob)
|
|
|
|
[74]
|
|
|
|
|
|
|
|
Recreated cwd
|
|
|
|
|
|
|
|
$ mkdir $A
|
|
|
|
$ hg debug-args a
|
2019-11-14 02:07:20 +03:00
|
|
|
(warning: the current directory was recreated; consider running 'cd $PWD' to fix your shell)
|
2019-10-24 23:38:34 +03:00
|
|
|
["a"]
|