mercurial/context.py
changeset 21880 e6754f5e4cf7
parent 21845 04f5b5e3792e
child 21895 5809d62e7106
equal deleted inserted replaced
21879:090dcaaf3fff 21880:e6754f5e4cf7
    69 
    69 
    70         This method is for internal use only and mainly exists to provide an
    70         This method is for internal use only and mainly exists to provide an
    71         object oriented way for other contexts to customize the manifest
    71         object oriented way for other contexts to customize the manifest
    72         generation.
    72         generation.
    73         """
    73         """
       
    74         if match.always():
       
    75             return self.manifest().copy()
       
    76 
       
    77         if match.matchfn == match.exact:
       
    78             return self.manifest().intersectfiles(match.files())
       
    79 
    74         mf = self.manifest().copy()
    80         mf = self.manifest().copy()
    75         if match.always():
       
    76             return mf
       
    77         for fn in mf.keys():
    81         for fn in mf.keys():
    78             if not match(fn):
    82             if not match(fn):
    79                 del mf[fn]
    83                 del mf[fn]
    80         return mf
    84         return mf
    81 
    85