diff -r fa6ba7c9600b -r 7332bf4ae959 tests/test-commandserver.t --- a/tests/test-commandserver.t Tue Sep 01 16:38:52 2015 +0900 +++ b/tests/test-commandserver.t Mon Aug 31 23:29:15 2015 +0900 @@ -589,6 +589,15 @@ 000000000000 tip +don't fall back to cwd if invalid -R path is specified (issue4805): + + $ cd repo + $ hg serve --cmdserver pipe -R ../nonexistent + abort: repository ../nonexistent not found! + [255] + $ cd .. + + unix domain socket: $ cd repo