Show More
@@ -1169,8 +1169,9 b' def diff(repo, node1=None, node2=None, f' | |||||
1169 | if crev is None: |
|
1169 | if crev is None: | |
1170 | crev = repo.changelog.count() |
|
1170 | crev = repo.changelog.count() | |
1171 | orig = f |
|
1171 | orig = f | |
|
1172 | files = (f,) | |||
1172 | while crev > startrev: |
|
1173 | while crev > startrev: | |
1173 |
if f in |
|
1174 | if f in files: | |
1174 | try: |
|
1175 | try: | |
1175 | src = getfilectx(f, c).renamed() |
|
1176 | src = getfilectx(f, c).renamed() | |
1176 | except revlog.LookupError: |
|
1177 | except revlog.LookupError: | |
@@ -1180,6 +1181,7 b' def diff(repo, node1=None, node2=None, f' | |||||
1180 | crev = c.parents()[0].rev() |
|
1181 | crev = c.parents()[0].rev() | |
1181 | # try to reuse |
|
1182 | # try to reuse | |
1182 | c = getctx(crev) |
|
1183 | c = getctx(crev) | |
|
1184 | files = c.files() | |||
1183 | if f not in man: |
|
1185 | if f not in man: | |
1184 | return None |
|
1186 | return None | |
1185 | if f == orig: |
|
1187 | if f == orig: |
General Comments 0
You need to be logged in to leave comments.
Login now