D6371: record: avoid modifying the matcher passed as a method parameter

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon May 13 19:56:37 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG19b95afb0c01: record: avoid modifying the matcher passed as a method parameter (authored by mharbison72, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6371?vs=15065&id=15068

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

AFFECTED FILES
  mercurial/cmdutil.py

CHANGE DETAILS

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -278,8 +278,8 @@
         force = opts.get('force')
         if not force:
             vdirs = []
+            match = matchmod.badmatch(match, fail)
             match.explicitdir = vdirs.append
-            match.bad = fail
 
         status = repo.status(match=match)
 



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


More information about the Mercurial-devel mailing list