D6001: contrib: also linkify tracebacks in compilation output when using hg-test-mode

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Feb 21 23:40:18 EST 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  contrib/hg-test-mode.el

CHANGE DETAILS

diff --git a/contrib/hg-test-mode.el b/contrib/hg-test-mode.el
--- a/contrib/hg-test-mode.el
+++ b/contrib/hg-test-mode.el
@@ -54,6 +54,11 @@
   (run-hooks 'hg-test-mode-hook))
 
 (with-eval-after-load "compile"
+  ;; Link to Python sources in tracebacks in .t failures.
+  (add-to-list 'compilation-error-regexp-alist-alist
+               '(hg-test-output-python-tb
+                 "^\\+ +File ['\"]\\([^'\"]+\\)['\"], line \\([0-9]+\\)," 1 2))
+  (add-to-list 'compilation-error-regexp-alist 'hg-test-output-python-tb)
   ;; Link to source files in test-check-code.t violations.
   (add-to-list 'compilation-error-regexp-alist-alist
                '(hg-test-check-code-output



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list