D7731: tests: fix failing doctest in match.py by adding dummy auditor

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Jan 8 07:03:07 EST 2020


Closed by commit rHGd9d78e70149a: tests: fix failing doctest in match.py by adding dummy auditor (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7731?vs=18947&id=19063

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

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

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -945,7 +945,7 @@
     The paths are remapped to remove/insert the path as needed:
 
     >>> from . import pycompat
-    >>> m1 = match(util.localpath(b'/root'), b'', [b'a.txt', b'sub/b.txt'])
+    >>> m1 = match(util.localpath(b'/root'), b'', [b'a.txt', b'sub/b.txt'], auditor=lambda name: None)
     >>> m2 = subdirmatcher(b'sub', m1)
     >>> m2(b'a.txt')
     False



To: martinvonz, #hg-reviewers, marmoute, mharbison72, pulkit
Cc: mharbison72, marmoute, mercurial-devel


More information about the Mercurial-devel mailing list