test-mq.t failure and how to avoid it
keramida at ceid.upatras.gr
Wed Dec 8 09:21:37 CST 2010
I tried creating an hg repository as a test for tracking the files of a
virtual machine's root filesystem, but this seems to be a bad idea for
the hg test-suite. One of the tests tries to create an mq-subrepo in a
directory that has no .hg root.
The expected error message is:
abort: there is no Mercurial repository here (.hg not found)
But if there's an /.hg repo at the root of the filesystem, e.g. one
owned by the 'root:wheel' user the test command fails with:
$ hg init --mq
abort: Permission denied: /.hg/patches
Other than wiping the "/.hg" tree or temporarily moving it away is there
any way to avoid this sort of test confusion?
More information about the Mercurial-devel