equal
deleted
inserted
replaced
841 self._metadata = metadata |
841 self._metadata = metadata |
842 self._skipclean = skipclean |
842 self._skipclean = skipclean |
843 |
843 |
844 def affects(self, opts, fixctx, path): |
844 def affects(self, opts, fixctx, path): |
845 """Should this fixer run on the file at the given path and context?""" |
845 """Should this fixer run on the file at the given path and context?""" |
846 return self._pattern is not None and scmutil.match( |
846 return scmutil.match(fixctx, [self._pattern], opts)(path) |
847 fixctx, [self._pattern], opts |
|
848 )(path) |
|
849 |
847 |
850 def shouldoutputmetadata(self): |
848 def shouldoutputmetadata(self): |
851 """Should the stdout of this fixer start with JSON and a null byte?""" |
849 """Should the stdout of this fixer start with JSON and a null byte?""" |
852 return self._metadata |
850 return self._metadata |
853 |
851 |