[Updated] D11942: rhg: Accept different "invalid ignore pattern" error message formatting

SimonSapin phabricator at mercurial-scm.org
Mon Dec 20 13:34:38 UTC 2021


Closed by commit rHG262a38f10427: rhg: Accept different "invalid ignore pattern" error message formatting (authored by SimonSapin).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11942?vs=31551&id=31555

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11942/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11942

AFFECTED FILES
  tests/test-hgignore.t

CHANGE DETAILS

diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t
--- a/tests/test-hgignore.t
+++ b/tests/test-hgignore.t
@@ -9,10 +9,6 @@
   > EOF
 #endif
 
-TODO: fix rhg bugs that make this test fail when status is enabled
-  $ unset RHG_STATUS
-
-
   $ hg init ignorerepo
   $ cd ignorerepo
 
@@ -63,9 +59,19 @@
   ? syntax
 
   $ echo "*.o" > .hgignore
+#if no-rhg
   $ hg status
   abort: $TESTTMP/ignorerepo/.hgignore: invalid pattern (relre): *.o (glob)
   [255]
+#endif
+#if rhg
+  $ hg status
+  Unsupported syntax regex parse error:
+      ^(?:*.o)
+          ^
+  error: repetition operator missing expression
+  [255]
+#endif
 
 Ensure given files are relative to cwd
 



To: SimonSapin, #hg-reviewers, Alphare
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211220/fee9ec72/attachment-0002.html>


More information about the Mercurial-patches mailing list