##// END OF EJS Templates
commits: skip hidden/obsolete commits (on vcsserver) and display branch when DAG diverges on child/parent links
marcink -
r3852:611dc781 default
parent child Browse files
Show More
@@ -274,13 +274,16 b''
274 274 else if(data.results.length === 2){
275 275 $('#child_link').addClass('disabled');
276 276 $('#child_link').addClass('double');
277
277 278 var _html = '';
278 _html +='<a title="__title__" href="__url__">__rev__</a> '
279 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a> '
280 .replace('__branch__', data.results[0].branch)
279 281 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
280 282 .replace('__title__', data.results[0].message)
281 283 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
282 284 _html +=' | ';
283 _html +='<a title="__title__" href="__url__">__rev__</a> '
285 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a> '
286 .replace('__branch__', data.results[1].branch)
284 287 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
285 288 .replace('__title__', data.results[1].message)
286 289 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
@@ -310,13 +313,16 b''
310 313 else if(data.results.length === 2){
311 314 $('#parent_link').addClass('disabled');
312 315 $('#parent_link').addClass('double');
316
313 317 var _html = '';
314 _html +='<a title="__title__" href="__url__">Parent __rev__</a>'
318 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a>'
319 .replace('__branch__', data.results[0].branch)
315 320 .replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
316 321 .replace('__title__', data.results[0].message)
317 322 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[0].raw_id}));
318 323 _html +=' | ';
319 _html +='<a title="__title__" href="__url__">Parent __rev__</a>'
324 _html +='<a title="__title__" href="__url__"><span class="tag branchtag"><i class="icon-code-fork"></i>__branch__</span> __rev__</a>'
325 .replace('__branch__', data.results[1].branch)
320 326 .replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
321 327 .replace('__title__', data.results[1].message)
322 328 .replace('__url__', pyroutes.url('repo_commit', {'repo_name': '${c.repo_name}','commit_id': data.results[1].raw_id}));
General Comments 0
You need to be logged in to leave comments. Login now