# HG changeset patch # User Arseniy Alekseyev # Date 2022-10-31 16:15:30 # Node ID b51e5c2ab5fd38849003dbc3ad79040ba5781360 # Parent 4e70efd5fd0ef6f538ecc809070c002c57858993 rhg: add a test involving hgignore lookaround diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t --- a/tests/test-hgignore.t +++ b/tests/test-hgignore.t @@ -73,6 +73,24 @@ Should display baz only: [255] #endif + $ echo 're:^(?!a).*\.o$' > .hgignore +#if no-rhg + $ hg status + A dir/b.o + ? .hgignore + ? a.c + ? a.o + ? syntax +#endif +#if rhg + $ hg status + Unsupported syntax regex parse error: + ^(?:^(?!a).*\.o$) + ^^^ + error: look-around, including look-ahead and look-behind, is not supported + [255] +#endif + Ensure given files are relative to cwd $ echo "dir/.*\.o" > .hgignore