Show More
@@ -395,7 +395,7 b' class ChangesetController(BaseRepoContro' | |||
|
395 | 395 | # get status if set ! |
|
396 | 396 | if status and change_status: |
|
397 | 397 | # if latest status was from pull request and it's closed |
|
398 |
# disallow changing status ! |
|
|
398 | # disallow changing status ! | |
|
399 | 399 | # dont_allow_on_closed_pull_request = True ! |
|
400 | 400 | |
|
401 | 401 | try: |
@@ -589,6 +589,3 b' else:' | |||
|
589 | 589 | self.__cond.wait(timeout) |
|
590 | 590 | finally: |
|
591 | 591 | self.__cond.release() |
|
592 | ||
|
593 | ||
|
594 |
@@ -1317,4 +1317,4 b' class PullRequest(Base, BaseModel):' | |||
|
1317 | 1317 | org_repo_id = Column('org_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False) |
|
1318 | 1318 | org_ref = Column('org_ref', Unicode(256), nullable=False) |
|
1319 | 1319 | other_repo_id = Column('other_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False) |
|
1320 | other_ref = Column('other_ref', Unicode(256), nullable=False) No newline at end of file | |
|
1320 | other_ref = Column('other_ref', Unicode(256), nullable=False) |
@@ -49,7 +49,7 b' def upgrade(migrate_engine):' | |||
|
49 | 49 | tbl = ChangesetStatus.__table__ |
|
50 | 50 | tbl.create() |
|
51 | 51 | |
|
52 |
## RESET COMPLETLY THE metadata for sqlalchemy to use the 1_3_0 Base |
|
|
52 | ## RESET COMPLETLY THE metadata for sqlalchemy to use the 1_3_0 Base | |
|
53 | 53 | Base = declarative_base() |
|
54 | 54 | Base.metadata.clear() |
|
55 | 55 | Base.metadata = MetaData() |
@@ -206,7 +206,7 b' def get_repos(path, recursive=False):' | |||
|
206 | 206 | def is_valid_repo(repo_name, base_path, scm=None): |
|
207 | 207 | """ |
|
208 | 208 | Returns True if given path is a valid repository False otherwise. |
|
209 |
If scm param is given also compare if given scm is the same as expected |
|
|
209 | If scm param is given also compare if given scm is the same as expected | |
|
210 | 210 | from scm parameter |
|
211 | 211 | |
|
212 | 212 | :param repo_name: |
@@ -15,4 +15,4 b' from mercurial.encoding import tolocal' | |||
|
15 | 15 | from mercurial import discovery |
|
16 | 16 | from mercurial import localrepo |
|
17 | 17 | from mercurial import scmutil |
|
18 | from mercurial.discovery import findcommonoutgoing No newline at end of file | |
|
18 | from mercurial.discovery import findcommonoutgoing |
@@ -340,4 +340,4 b' def PullRequestForm():' | |||
|
340 | 340 | pullrequest_title = v.UnicodeString(strip=True, required=True, min=3) |
|
341 | 341 | pullrequest_desc = v.UnicodeString(strip=True, required=False) |
|
342 | 342 | |
|
343 | return _PullRequestForm No newline at end of file | |
|
343 | return _PullRequestForm |
@@ -115,7 +115,7 b'' | |||
|
115 | 115 | ${h.checkbox('enable_locking',value="True")} |
|
116 | 116 | <span class="help-block">${_('Enable lock-by-pulling on repository.')}</span> |
|
117 | 117 | </div> |
|
118 |
</div> |
|
|
118 | </div> | |
|
119 | 119 | <div class="field"> |
|
120 | 120 | <div class="label"> |
|
121 | 121 | <label for="user">${_('Owner')}:</label> |
@@ -193,7 +193,7 b'' | |||
|
193 | 193 | <li>${_('Manually invalidate cache for this repository. On first access repository will be cached again')} |
|
194 | 194 | </li> |
|
195 | 195 | </ul> |
|
196 |
</div> |
|
|
196 | </div> | |
|
197 | 197 | <div class="field" style="border:none;"> |
|
198 | 198 | ${_('List of cached values')} |
|
199 | 199 | <ul> |
@@ -201,7 +201,7 b'' | |||
|
201 | 201 | <li>INSTANCE ID:${cache.prefix or '-'} ${cache.cache_args} CACHED: ${h.bool2icon(cache.cache_active)}</li> |
|
202 | 202 | %endfor |
|
203 | 203 | </ul> |
|
204 |
</div> |
|
|
204 | </div> | |
|
205 | 205 | </div> |
|
206 | 206 | </div> |
|
207 | 207 | ${h.end_form()} |
@@ -243,7 +243,7 b'' | |||
|
243 | 243 | <li>${_('Force locking on repository. Works only when anonymous access is disabled')} |
|
244 | 244 | </li> |
|
245 | 245 | </ul> |
|
246 |
</div> |
|
|
246 | </div> | |
|
247 | 247 | </div> |
|
248 | 248 | ${h.end_form()} |
|
249 | 249 | |
@@ -259,9 +259,9 b'' | |||
|
259 | 259 | <li>${_('''Manually set this repository as a fork of another from the list''')}</li> |
|
260 | 260 | </ul> |
|
261 | 261 | </div> |
|
262 |
</div> |
|
|
262 | </div> | |
|
263 | 263 | ${h.end_form()} |
|
264 | ||
|
264 | ||
|
265 | 265 | <h3>${_('Delete')}</h3> |
|
266 | 266 | ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} |
|
267 | 267 | <div class="form"> |
@@ -276,7 +276,7 b'' | |||
|
276 | 276 | </ul> |
|
277 | 277 | </div> |
|
278 | 278 | </div> |
|
279 |
${h.end_form()} |
|
|
279 | ${h.end_form()} | |
|
280 | 280 | </div> |
|
281 | 281 | |
|
282 | 282 | </%def> |
@@ -74,8 +74,8 b'' | |||
|
74 | 74 | </div> \ |
|
75 | 75 | </td> \ |
|
76 | 76 | <td></td>'""") |
|
77 |
%> |
|
|
78 |
## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl' |
|
|
77 | %> | |
|
78 | ## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl' | |
|
79 | 79 | <tr class="new_members last_new_member" id="add_perm_input"></tr> |
|
80 | 80 | <tr> |
|
81 | 81 | <td colspan="6"> |
@@ -58,8 +58,8 b'' | |||
|
58 | 58 | </div> \ |
|
59 | 59 | </td> \ |
|
60 | 60 | <td></td>'""") |
|
61 |
%> |
|
|
62 |
## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl' |
|
|
61 | %> | |
|
62 | ## ADD HERE DYNAMICALLY NEW INPUTS FROM THE '_tmpl' | |
|
63 | 63 | <tr class="new_members last_new_member" id="add_perm_input"></tr> |
|
64 | 64 | <tr> |
|
65 | 65 | <td colspan="6"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | </%def> |
|
6 | 6 | |
|
7 | 7 | <%def name="breadcrumbs()"> |
|
8 |
<span class="groups_breadcrumbs"> |
|
|
8 | <span class="groups_breadcrumbs"> | |
|
9 | 9 | ${h.link_to(_(u'Home'),h.url('/'))} |
|
10 | 10 | %if c.group.parent_group: |
|
11 | 11 | » ${h.link_to(c.group.parent_group.name,h.url('repos_group_home',group_name=c.group.parent_group.group_name))} |
@@ -69,7 +69,7 b'' | |||
|
69 | 69 | ${h.checkbox('enable_locking',value="True")} |
|
70 | 70 | <span class="help-block">${_('Enable lock-by-pulling on group. This option will be applied to all other groups and repositories inside')}</span> |
|
71 | 71 | </div> |
|
72 |
</div> |
|
|
72 | </div> | |
|
73 | 73 | <div class="buttons"> |
|
74 | 74 | ${h.submit('save',_('Save'),class_="ui-btn large")} |
|
75 | 75 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
@@ -154,7 +154,7 b'' | |||
|
154 | 154 | <li>[stale] <span class="metatag" tag="stale">stale</span></li> |
|
155 | 155 | <li>[dead] <span class="metatag" tag="dead">dead</span></li> |
|
156 | 156 | <li>[lang => lang] <span class="metatag" tag="lang" >lang</span></li> |
|
157 |
<li>[license => License] <span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></li> |
|
|
157 | <li>[license => License] <span class="metatag" tag="license"><a href="http://www.opensource.org/licenses/License" >License</a></span></li> | |
|
158 | 158 | <li>[requires => Repo] <span class="metatag" tag="requires" >requires => <a href="#" >Repo</a></span></li> |
|
159 | 159 | <li>[recommends => Repo] <span class="metatag" tag="recommends" >recommends => <a href="#" >Repo</a></span></li> |
|
160 | 160 | <li>[see => URI] <span class="metatag" tag="see">see => <a href="#">URI</a> </span></li> |
@@ -237,9 +237,9 b'' | |||
|
237 | 237 | ## ${h.checkbox('extensions_hggit','True')} |
|
238 | 238 | ## <label for="extensions_hggit">${_('hg-git extensions')}</label> |
|
239 | 239 | ##</div> |
|
240 |
##<span class="help-block">${_('Requires hg-git library installed. Allows clonning from git remote locations')}</span> |
|
|
240 | ##<span class="help-block">${_('Requires hg-git library installed. Allows clonning from git remote locations')}</span> | |
|
241 | 241 | </div> |
|
242 |
</div> |
|
|
242 | </div> | |
|
243 | 243 | <div class="field"> |
|
244 | 244 | <div class="label"> |
|
245 | 245 | <label for="paths_root_path">${_('Repositories location')}:</label> |
@@ -152,7 +152,7 b'' | |||
|
152 | 152 | <span class="help-block">${h.literal(_('Select to inherit permissions from %s settings. ' |
|
153 | 153 | 'With this selected below options does not have any action') % h.link_to('default', url('edit_permission', id='default')))}</span> |
|
154 | 154 | </div> |
|
155 |
<div id="inherit_overlay" style="${'opacity:0.3' if c.user.inherit_default_permissions else ''}" > |
|
|
155 | <div id="inherit_overlay" style="${'opacity:0.3' if c.user.inherit_default_permissions else ''}" > | |
|
156 | 156 | <div class="field"> |
|
157 | 157 | <div class="label label-checkbox"> |
|
158 | 158 | <label for="create_repo_perm">${_('Create repositories')}:</label> |
@@ -169,7 +169,7 b'' | |||
|
169 | 169 | ${h.checkbox('fork_repo_perm',value=True)} |
|
170 | 170 | </div> |
|
171 | 171 | </div> |
|
172 |
</div> |
|
|
172 | </div> | |
|
173 | 173 | <div class="buttons"> |
|
174 | 174 | ${h.submit('save',_('Save'),class_="ui-btn large")} |
|
175 | 175 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
@@ -112,7 +112,7 b'' | |||
|
112 | 112 | </div> |
|
113 | 113 | <span class="help-block">${h.literal(_('Select to inherit permissions from %s settings. ' |
|
114 | 114 | 'With this selected below options does not have any action') % h.link_to('default', url('edit_permission', id='default')))}</span> |
|
115 |
</div> |
|
|
115 | </div> | |
|
116 | 116 | <div id="inherit_overlay" style="${'opacity:0.3' if c.users_group.inherit_default_permissions else ''}" > |
|
117 | 117 | <div class="field"> |
|
118 | 118 | <div class="label label-checkbox"> |
@@ -130,7 +130,7 b'' | |||
|
130 | 130 | ${h.checkbox('fork_repo_perm',value=True)} |
|
131 | 131 | </div> |
|
132 | 132 | </div> |
|
133 |
</div> |
|
|
133 | </div> | |
|
134 | 134 | <div class="buttons"> |
|
135 | 135 | ${h.submit('save',_('Save'),class_="ui-btn large")} |
|
136 | 136 | ${h.reset('reset',_('Reset'),class_="ui-btn large")} |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="main.html"/> |
|
3 | ||
|
4 |
User <b>${pr_user_created}</b> opened pull request for repository |
|
|
3 | ||
|
4 | User <b>${pr_user_created}</b> opened pull request for repository | |
|
5 | 5 | ${pr_repo_url} and wants you to review changes. |
|
6 | 6 | |
|
7 | 7 | <div>title: ${pr_title}</div> |
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="main.html"/> |
|
3 | ||
|
3 | ||
|
4 | 4 | User <b>${pr_comment_user}</b> commented on pull request #${pr_id} for |
|
5 | 5 | repository ${pr_target_repo} |
|
6 | 6 |
@@ -47,38 +47,38 b' var url_base = \'${h.url("files_nodelist_' | |||
|
47 | 47 | |
|
48 | 48 | var ypjax_links = function(){ |
|
49 | 49 | YUE.on(YUQ('.ypjax-link'), 'click',function(e){ |
|
50 | ||
|
50 | ||
|
51 | 51 | //don't do ypjax on middle click |
|
52 |
if(e.which == 2 || !History.enabled){ |
|
|
52 | if(e.which == 2 || !History.enabled){ | |
|
53 | 53 | return true; |
|
54 | 54 | } |
|
55 | ||
|
55 | ||
|
56 | 56 | var el = e.currentTarget; |
|
57 | 57 | var url = el.href; |
|
58 | 58 | |
|
59 | 59 | var _base_url = '${h.url("files_home",repo_name=c.repo_name,revision='',f_path='')}'; |
|
60 | 60 | _base_url = _base_url.replace('//','/') |
|
61 | ||
|
61 | ||
|
62 | 62 | //extract rev and the f_path from url. |
|
63 | 63 | parts = url.split(_base_url) |
|
64 | 64 | if(parts.length != 2){ |
|
65 | 65 | return false; |
|
66 | 66 | } |
|
67 | ||
|
67 | ||
|
68 | 68 | var parts2 = parts[1].split('/'); |
|
69 | 69 | var rev = parts2.shift(); // pop the first element which is the revision |
|
70 | 70 | var f_path = parts2.join('/'); |
|
71 | ||
|
71 | ||
|
72 | 72 | var title = "${_('%s files') % c.repo_name}" + " - " + f_path; |
|
73 | ||
|
73 | ||
|
74 | 74 | var _node_list_url = node_list_url.replace('__REV__',rev); |
|
75 | 75 | var _url_base = url_base.replace('__REV__',rev).replace('__FPATH__', f_path); |
|
76 | 76 | |
|
77 | 77 | // Change our States and save some data for handling events |
|
78 | 78 | var data = {url:url,title:title, url_base:_url_base, |
|
79 | 79 | node_list_url:_node_list_url}; |
|
80 |
History.pushState(data, title, url); |
|
|
81 | ||
|
80 | History.pushState(data, title, url); | |
|
81 | ||
|
82 | 82 | //now we're sure that we can do ypjax things |
|
83 | 83 | YUE.preventDefault(e) |
|
84 | 84 | return false; |
@@ -92,10 +92,10 b' var callbacks = function(State){' | |||
|
92 | 92 | // Inform Google Analytics of the change |
|
93 | 93 | if ( typeof window.pageTracker !== 'undefined' ) { |
|
94 | 94 | window.pageTracker._trackPageview(State.url); |
|
95 |
} |
|
|
95 | } | |
|
96 | 96 | } |
|
97 | 97 | |
|
98 |
YUE.onDOMReady(function(){ |
|
|
98 | YUE.onDOMReady(function(){ | |
|
99 | 99 | ypjax_links(); |
|
100 | 100 | var container = 'files_data'; |
|
101 | 101 | //Bind to StateChange Event |
@@ -124,8 +124,8 b' YUE.onDOMReady(function(){' | |||
|
124 | 124 | } |
|
125 | 125 | }); |
|
126 | 126 | } |
|
127 |
}); |
|
|
128 | ||
|
127 | }); | |
|
128 | ||
|
129 | 129 | // init the search filter |
|
130 | 130 | var _State = { |
|
131 | 131 | url: "${h.url.current()}", |
@@ -9,7 +9,7 b'' | |||
|
9 | 9 | <%include file='files_browser.html'/> |
|
10 | 10 | %else: |
|
11 | 11 | <%include file='files_source.html'/> |
|
12 |
%endif |
|
|
12 | %endif | |
|
13 | 13 | %else: |
|
14 | 14 | <h2> |
|
15 | 15 | <a href="#" onClick="javascript:parent.history.back();" target="main">${_('Go back')}</a> |
@@ -23,7 +23,7 b'' | |||
|
23 | 23 | <div style="padding:10px; font-size:22px;width:100%;text-align: center; color:#88D882">${_('Closed %s') % (h.age(c.pull_request.updated_on))} ${_('with status %s') % h.changeset_status_lbl(c.current_changeset_status)}</div> |
|
24 | 24 | %endif |
|
25 | 25 | <h3>${_('Title')}: ${c.pull_request.title}</h3> |
|
26 | ||
|
26 | ||
|
27 | 27 | <div class="form"> |
|
28 | 28 | <div id="summary" class="fields"> |
|
29 | 29 | <div class="field"> |
@@ -46,9 +46,9 b'' | |||
|
46 | 46 | <div class="input"> |
|
47 | 47 | <div class="tooltip" title="${h.tooltip(','.join([x.username for x in c.pull_request_pending_reviewers]))}">${ungettext('%d reviewer', '%d reviewers',len(c.pull_request_pending_reviewers)) % len(c.pull_request_pending_reviewers)}</div> |
|
48 | 48 | </div> |
|
49 |
</div> |
|
|
49 | </div> | |
|
50 | 50 | </div> |
|
51 |
</div> |
|
|
51 | </div> | |
|
52 | 52 | <div style="white-space:pre-wrap;padding:3px 3px 5px 20px">${h.literal(c.pull_request.description)}</div> |
|
53 | 53 | <div style="padding:4px 4px 10px 20px"> |
|
54 | 54 | <div>${_('Created on')}: ${h.fmt_date(c.pull_request.created_on)}</div> |
@@ -108,7 +108,7 b'' | |||
|
108 | 108 | <div class="input ${summary(c.show_stats)} desc">${h.urlify_text(h.desc_stylize(c.dbrepo.description))}</div> |
|
109 | 109 | %else: |
|
110 | 110 | <div class="input ${summary(c.show_stats)} desc">${h.urlify_text(c.dbrepo.description)}</div> |
|
111 |
%endif |
|
|
111 | %endif | |
|
112 | 112 | </div> |
|
113 | 113 | |
|
114 | 114 | <div class="field"> |
General Comments 0
You need to be logged in to leave comments.
Login now