Patchwork D10985: dirstate-item: use the properties in pathutil

login
register
mail settings
Submitter phabricator
Date July 5, 2021, 9:34 a.m.
Message ID <differential-rev-PHID-DREV-ii7bgdprm2hhkexf55pt-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49298/
State Superseded
Headers show

Comments

phabricator - July 5, 2021, 9:34 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/pathutil.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/pathutil.py b/mercurial/pathutil.py
--- a/mercurial/pathutil.py
+++ b/mercurial/pathutil.py
@@ -323,7 +323,7 @@ 
         addpath = self.addpath
         if isinstance(map, dict) and skip is not None:
             for f, s in pycompat.iteritems(map):
-                if s[0] != skip:
+                if s.state != skip:
                     addpath(f)
         elif skip is not None:
             raise error.ProgrammingError(