Show More
@@ -2605,7 +2605,14 def diffhunks( | |||||
2605 |
|
2605 | |||
2606 | if not changes: |
|
2606 | if not changes: | |
2607 | changes = ctx1.status(ctx2, match=match) |
|
2607 | changes = ctx1.status(ctx2, match=match) | |
|
2608 | if isinstance(changes, list): | |||
2608 | modified, added, removed = changes[:3] |
|
2609 | modified, added, removed = changes[:3] | |
|
2610 | else: | |||
|
2611 | modified, added, removed = ( | |||
|
2612 | changes.modified, | |||
|
2613 | changes.added, | |||
|
2614 | changes.removed, | |||
|
2615 | ) | |||
2609 |
|
2616 | |||
2610 | if not modified and not added and not removed: |
|
2617 | if not modified and not added and not removed: | |
2611 | return [] |
|
2618 | return [] |
General Comments 0
You need to be logged in to leave comments.
Login now