mercurial/store.py
changeset 50532 1b776f25302f
parent 50531 66c556968222
child 50538 862e3a13da44
equal deleted inserted replaced
50531:66c556968222 50532:1b776f25302f
    39 
    39 
    40     If matcher is None, returns True"""
    40     If matcher is None, returns True"""
    41 
    41 
    42     if matcher is None:
    42     if matcher is None:
    43         return True
    43         return True
    44     if entry.revlog_type == FILEFLAGS_FILELOG:
    44     if entry.is_filelog:
    45         return matcher(entry.target_id)
    45         return matcher(entry.target_id)
    46     elif entry.revlog_type == FILEFLAGS_MANIFESTLOG:
    46     elif entry.is_manifestlog:
    47         return matcher.visitdir(entry.target_id.rstrip(b'/'))
    47         return matcher.visitdir(entry.target_id.rstrip(b'/'))
    48     raise error.ProgrammingError(b"cannot process entry %r" % entry)
    48     raise error.ProgrammingError(b"cannot process entry %r" % entry)
    49 
    49 
    50 
    50 
    51 # This avoids a collision between a file named foo and a dir named
    51 # This avoids a collision between a file named foo and a dir named