mercurial/context.py
changeset 21895 5809d62e7106
parent 21880 e6754f5e4cf7
child 21938 c8411fb5dfef
equal deleted inserted replaced
21894:1000348b3aea 21895:5809d62e7106
    72         generation.
    72         generation.
    73         """
    73         """
    74         if match.always():
    74         if match.always():
    75             return self.manifest().copy()
    75             return self.manifest().copy()
    76 
    76 
    77         if match.matchfn == match.exact:
    77         files = match.files()
    78             return self.manifest().intersectfiles(match.files())
    78         if (match.matchfn == match.exact or
       
    79             (not match.anypats() and util.all(fn in self for fn in files))):
       
    80             return self.manifest().intersectfiles(files)
    79 
    81 
    80         mf = self.manifest().copy()
    82         mf = self.manifest().copy()
    81         for fn in mf.keys():
    83         for fn in mf.keys():
    82             if not match(fn):
    84             if not match(fn):
    83                 del mf[fn]
    85                 del mf[fn]