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

login
register
mail settings
Submitter phabricator
Date Jan. 8, 2020, 12:03 p.m.
Message ID <cbe3c25fd89365383b0f5b66c63a8fda@localhost.localdomain>
Download mbox | patch
Permalink /patch/44174/
State Not Applicable
Headers show

Comments

phabricator - Jan. 8, 2020, 12:03 p.m.
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




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

Patch

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