##// END OF EJS Templates
context: remove unnecessary default values for matchers (API)...
Martin von Zweigbergk -
r33938:e4326452 default
parent child Browse files
Show More
@@ -1750,11 +1750,9 b' class workingctx(committablectx):'
1750 # Even if the wlock couldn't be grabbed, clear out the list.
1750 # Even if the wlock couldn't be grabbed, clear out the list.
1751 self._repo.clearpostdsstatus()
1751 self._repo.clearpostdsstatus()
1752
1752
1753 def _dirstatestatus(self, match=None, ignored=False, clean=False,
1753 def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
1754 unknown=False):
1755 '''Gets the status from the dirstate -- internal use only.'''
1754 '''Gets the status from the dirstate -- internal use only.'''
1756 listignored, listclean, listunknown = ignored, clean, unknown
1755 listignored, listclean, listunknown = ignored, clean, unknown
1757 match = match or matchmod.always(self._repo.root, self._repo.getcwd())
1758 subrepos = []
1756 subrepos = []
1759 if '.hgsub' in self:
1757 if '.hgsub' in self:
1760 subrepos = sorted(self.substate)
1758 subrepos = sorted(self.substate)
@@ -1980,14 +1978,12 b' class workingcommitctx(workingctx):'
1980 super(workingctx, self).__init__(repo, text, user, date, extra,
1978 super(workingctx, self).__init__(repo, text, user, date, extra,
1981 changes)
1979 changes)
1982
1980
1983 def _dirstatestatus(self, match=None, ignored=False, clean=False,
1981 def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
1984 unknown=False):
1985 """Return matched files only in ``self._status``
1982 """Return matched files only in ``self._status``
1986
1983
1987 Uncommitted files appear "clean" via this context, even if
1984 Uncommitted files appear "clean" via this context, even if
1988 they aren't actually so in the working directory.
1985 they aren't actually so in the working directory.
1989 """
1986 """
1990 match = match or matchmod.always(self._repo.root, self._repo.getcwd())
1991 if clean:
1987 if clean:
1992 clean = [f for f in self._manifest if f not in self._changedset]
1988 clean = [f for f in self._manifest if f not in self._changedset]
1993 else:
1989 else:
General Comments 0
You need to be logged in to leave comments. Login now