Show More
@@ -183,6 +183,13 b' class CompareController(BaseRepoControll' | |||||
183 |
|
183 | |||
184 | pre_load = ["author", "branch", "date", "message"] |
|
184 | pre_load = ["author", "branch", "date", "message"] | |
185 | c.ancestor = None |
|
185 | c.ancestor = None | |
|
186 | ||||
|
187 | if c.file_path: | |||
|
188 | if source_commit == target_commit: | |||
|
189 | c.commit_ranges = [] | |||
|
190 | else: | |||
|
191 | c.commit_ranges = [target_commit] | |||
|
192 | else: | |||
186 | try: |
|
193 | try: | |
187 | c.commit_ranges = source_scm.compare( |
|
194 | c.commit_ranges = source_scm.compare( | |
188 | source_commit.raw_id, target_commit.raw_id, |
|
195 | source_commit.raw_id, target_commit.raw_id, |
General Comments 0
You need to be logged in to leave comments.
Login now