hgext/fix.py
changeset 43221 0e2a2fab4b2e
parent 43220 d3d1a3afe7aa
child 43227 f02d3c0eed18
equal deleted inserted replaced
43220:d3d1a3afe7aa 43221:0e2a2fab4b2e
   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