equal
deleted
inserted
replaced
1164 m = matchmod.match(repo.root, repo.getcwd(), pats, include=inc, |
1164 m = matchmod.match(repo.root, repo.getcwd(), pats, include=inc, |
1165 exclude=exc, ctx=repo[rev], default=default) |
1165 exclude=exc, ctx=repo[rev], default=default) |
1166 |
1166 |
1167 # This directly read the changelog data as creating changectx for all |
1167 # This directly read the changelog data as creating changectx for all |
1168 # revisions is quite expensive. |
1168 # revisions is quite expensive. |
1169 getchangeset = repo.changelog.read |
1169 getfiles = repo.changelog.readfiles |
1170 wdirrev = node.wdirrev |
1170 wdirrev = node.wdirrev |
1171 def matches(x): |
1171 def matches(x): |
1172 if x == wdirrev: |
1172 if x == wdirrev: |
1173 files = repo[x].files() |
1173 files = repo[x].files() |
1174 else: |
1174 else: |
1175 files = getchangeset(x)[3] |
1175 files = getfiles(x) |
1176 for f in files: |
1176 for f in files: |
1177 if m(f): |
1177 if m(f): |
1178 return True |
1178 return True |
1179 return False |
1179 return False |
1180 |
1180 |