equal
deleted
inserted
replaced
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 |