Files
@ 631e8000eae8
Branch filter:
Location: kallithea/rhodecode/templates/admin/repos/repo_add.html - annotation
631e8000eae8
721 B
text/html
diff parser: match the header order of hg diff --git patches
The output might look like:
diff --git a/A b/B
old mode 100644
new mode 100755
rename from A
rename to B
--- a/A
+++ b/B
Such files were shown as 'modified binary file chmod 100644 => 100755' without
diff.
Now the chmod and diff will be shown ... but still not the rename.
Correct parsing of headers do require a better parser - one do not just use a
regexp.
The output might look like:
diff --git a/A b/B
old mode 100644
new mode 100755
rename from A
rename to B
--- a/A
+++ b/B
Such files were shown as 'modified binary file chmod 100644 => 100755' without
diff.
Now the chmod and diff will be shown ... but still not the rename.
Correct parsing of headers do require a better parser - one do not just use a
regexp.
1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1f334a68d057 1e757ac98988 1e757ac98988 1e757ac98988 069884383cc7 f91d3f9b7230 f91d3f9b7230 f91d3f9b7230 069884383cc7 069884383cc7 069884383cc7 cfc0fef66ddd 069884383cc7 1e757ac98988 ec6354949623 1e757ac98988 1e757ac98988 1e757ac98988 b4f401524060 1e757ac98988 4b62d2fea08a 1e757ac98988 b4f401524060 b4f401524060 b4f401524060 b4f401524060 b4f401524060 4b62d2fea08a f91d3f9b7230 f91d3f9b7230 | ## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Add repository')} · ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
%if c.rhodecode_user.is_admin:
${h.link_to(_('Admin'),h.url('admin_home'))}
»
${h.link_to(_('Repositories'),h.url('repos'))}
%else:
${_('Admin')}
»
${_('Repositories')}
%endif
»
${_('Add new')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
</%def>
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
</div>
<%include file="repo_add_base.html"/>
</div>
</%def>
|