Show More
@@ -1018,11 +1018,16 b' def walkchangerevs(ui, repo, pats, chang' | |||||
1018 | minrev, maxrev = min(revs), max(revs) |
|
1018 | minrev, maxrev = min(revs), max(revs) | |
1019 | for file_, node in iterfiles(): |
|
1019 | for file_, node in iterfiles(): | |
1020 | filelog = repo.file(file_) |
|
1020 | filelog = repo.file(file_) | |
|
1021 | if filelog.count() == 0: | |||
|
1022 | if node is None: | |||
1021 | # A zero count may be a directory or deleted file, so |
|
1023 | # A zero count may be a directory or deleted file, so | |
1022 | # try to find matching entries on the slow path. |
|
1024 | # try to find matching entries on the slow path. | |
1023 | if filelog.count() == 0: |
|
|||
1024 | slowpath = True |
|
1025 | slowpath = True | |
1025 | break |
|
1026 | break | |
|
1027 | else: | |||
|
1028 | ui.warn(_('%s:%s copy source revision cannot be found!\n') | |||
|
1029 | % (file_, short(node))) | |||
|
1030 | continue | |||
1026 | for rev, copied in filerevgen(filelog, node): |
|
1031 | for rev, copied in filerevgen(filelog, node): | |
1027 | if rev <= maxrev: |
|
1032 | if rev <= maxrev: | |
1028 | if rev < minrev: |
|
1033 | if rev < minrev: |
General Comments 0
You need to be logged in to leave comments.
Login now