##// END OF EJS Templates
compare: using f_path shouldn't generate full range of commits....
marcink -
r1262:fa7f32fd default
parent child Browse files
Show More
@@ -183,6 +183,13 b' class CompareController(BaseRepoControll'
183 183
184 184 pre_load = ["author", "branch", "date", "message"]
185 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 193 try:
187 194 c.commit_ranges = source_scm.compare(
188 195 source_commit.raw_id, target_commit.raw_id,
General Comments 0
You need to be logged in to leave comments. Login now