##// END OF EJS Templates
diffs: use whole chunk diff to calculate if it's oversized or not....
diffs: use whole chunk diff to calculate if it's oversized or not. - This fixes an issue if a file is added that has very large number of small lines. In this case the time to detect if the diff should be limited was very very long and CPU intensive.

File last commit:

r2014:b776c5e0 default
r2070:7939c6bf default
Show More
repo_edit_remote.mako
40 lines | 1.5 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('Remote url')}</h3>
</div>
<div class="panel-body">
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 <h4>${_('Manually pull changes from external repository.')}</h4>
templating: use .mako as extensions for template files.
r1282 %if c.repo_info.clone_uri:
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 ${_('Remote mirror url')}:
<a href="${c.repo_info.clone_uri}">${c.repo_info.clone_uri_hidden}</a>
<p>
${_('Pull can be automated by such api call. Can be called periodically in crontab etc.')}
<br/>
repo-settings: expose pull api endpoint into remote pull view for easier automation.
r1551 <code>
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 ${h.api_call_example(method='pull', args={"repoid": c.repo_info.repo_name})}
repo-settings: expose pull api endpoint into remote pull view for easier automation.
r1551 </code>
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 </p>
templating: use .mako as extensions for template files.
r1282
repositories: rewrote whole admin section to pyramid....
r2014 ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), method='POST', request=request)}
templating: use .mako as extensions for template files.
r1282 <div class="form">
<div class="fields">
${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")}
</div>
</div>
${h.end_form()}
%else:
settings-pages: replaced hardcoded api calls examples with introduced...
r1741 ${_('This repository does not have any remote mirror url set.')}
<a href="${h.route_path('edit_repo', repo_name=c.repo_info.repo_name)}">${_('Set remote url.')}</a>
<br/>
<br/>
repo-settings: expose pull api endpoint into remote pull view for easier automation.
r1551 <button class="btn disabled" type="submit" disabled="disabled">
templating: use .mako as extensions for template files.
r1282 ${_('Pull changes from remote location')}
</button>
%endif
</div>
</div>