Skip to content
Snippets Groups Projects
Commit 2f1567ef70ba authored by Sean Farley's avatar Sean Farley
Browse files

basectx: add _matchstatus method for factoring out last of parentworking logic

This patch paves the way to allow a workingctx to override the match object
with a custom 'bad' method for cases where status is sent a directory pattern.
parent d19f491e5d5b
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,15 @@
del mf[fn]
return mf
def _matchstatus(self, other, s, match, listignored, listclean,
listunknown):
"""return match.always if match is none
This internal method provides a way for child objects to override the
match operator.
"""
return match or matchmod.always(self._repo.root, self._repo.getcwd())
def _prestatus(self, other, s, match, listignored, listclean, listunknown):
"""provide a hook to allow child objects to preprocess status results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment