.. _changelog:
=========
Changelog
1.3.5 (**2012-XX-XX**)
----------------------
:status: in-progress
:branch: beta
news
++++
- use ext_json for json module
- unified annotation view with file source view
- notification improvements, better inbox + css
- #419 don't strip passwords for login forms, make rhodecode
more compatible with LDAP servers
- Added HTTP_X_FORWARDED_FOR as another method of extracting
IP for pull/push logs. - moved all to base controller
- #415: Adding comment to changeset causes reload.
Comments are now added via ajax and doesn't reload the page
- #374 LDAP config is discarded when LDAP can't be activated
- limited push/pull operations are now logged for git in the journal
- bumped mercurial to 2.2.X series
- added support for displaying submodules in file-browser
- #421 added bookmarks in changlog view
fixes
+++++
- fixed dev-version marker for stable when served from source codes
- fixed missing permission checks on show forks page
- #418 cast to unicode fixes in notification objects
- #426 fixed mention extracting regex
- fixed remote-pulling for git remotes remopositories
- fixed #434: Error when accessing files or changesets of a git repository
with submodules
1.3.4 (**2012-03-28**)
- Whoosh logging is now controlled by the .ini files logging setup
- added clone-url into edit form on /settings page
- added help text into repo add/edit forms
- created rcextensions module with additional mappings (ref #322) and
post push/pull/create repo hooks callbacks
- implemented #377 Users view for his own permissions on account page
- #399 added inheritance of permissions for users group on repos groups
- #401 repository group is automatically pre-selected when adding repos
inside a repository group
- added alternative HTTP 403 response when client failed to authenticate. Helps
solving issues with Mercurial and LDAP
- #402 removed group prefix from repository name when listing repositories
inside a group
- added gravatars into permission view and permissions autocomplete
- #347 when running multiple RhodeCode instances, properly invalidates cache
for all registered servers
- fixed #390 cache invalidation problems on repos inside group
- fixed #385 clone by ID url was loosing proxy prefix in URL
- fixed some unicode problems with waitress
- fixed issue with escaping < and > in changeset commits
- fixed error occurring during recursive group creation in API
create_repo function
- fixed #393 py2.5 fixes for routes url generator
- fixed #397 Private repository groups shows up before login
- fixed #396 fixed problems with revoking users in nested groups
- fixed mysql unicode issues + specified InnoDB as default engine with
utf8 charset
- #406 trim long branch/tag names in changelog to not break UI
1.3.3 (**2012-03-02**)
- fixed some python2.5 compatibility issues
- fixed issues with removed repos was accidentally added as groups, after
full rescan of paths
- fixes #376 Cannot edit user (using container auth)
- fixes #378 Invalid image urls on changeset screen with proxy-prefix
configuration
- fixed initial sorting of repos inside repo group
- fixes issue when user tried to resubmit same permission into user/user_groups
- bumped beaker version that fixes #375 leap error bug
- fixed raw_changeset for git. It was generated with hg patch headers
- fixed vcs issue with last_changeset for filenodes
- fixed missing commit after hook delete
- fixed #372 issues with git operation detection that caused a security issue
for git repos
1.3.2 (**2012-02-28**)
- fixed git protocol issues with repos-groups
- fixed git remote repos validator that prevented from cloning remote git repos
- fixes #370 ending slashes fixes for repo and groups
- fixes #368 improved git-protocol detection to handle other clients
- fixes #366 When Setting Repository Group To Blank Repo Group Wont Be
Moved To Root
- fixes #371 fixed issues with beaker/sqlalchemy and non-ascii cache keys
- fixed #373 missing cascade drop on user_group_to_perm table
1.3.1 (**2012-02-27**)
import os
import posixpath
from rhodecode.lib.vcs.backends.base import BaseChangeset
from rhodecode.lib.vcs.conf import settings
from rhodecode.lib.vcs.exceptions import ChangesetDoesNotExistError, \
ChangesetError, ImproperArchiveTypeError, NodeDoesNotExistError, VCSError
from rhodecode.lib.vcs.nodes import AddedFileNodesGenerator, \
ChangedFileNodesGenerator, DirNode, FileNode, NodeKind, \
RemovedFileNodesGenerator, RootNode, SubModuleNode
from rhodecode.lib.vcs.utils import safe_str, safe_unicode, date_fromtimestamp
from rhodecode.lib.vcs.utils.lazy import LazyProperty
from rhodecode.lib.vcs.utils.paths import get_dirs_for_path
from ...utils.hgcompat import archival, hex
class MercurialChangeset(BaseChangeset):
"""
Represents state of the repository at the single revision.
def __init__(self, repository, revision):
self.repository = repository
self.raw_id = revision
self._ctx = repository._repo[revision]
self.revision = self._ctx._rev
self.nodes = {}
@LazyProperty
def tags(self):
return map(safe_unicode, self._ctx.tags())
def branch(self):
return safe_unicode(self._ctx.branch())
def bookmarks(self):
return map(safe_unicode, self._ctx.bookmarks())
def message(self):
return safe_unicode(self._ctx.description())
def author(self):
return safe_unicode(self._ctx.user())
def date(self):
return date_fromtimestamp(*self._ctx.date())
def status(self):
Returns modified, added, removed, deleted files for current changeset
return self.repository._repo.status(self._ctx.p1().node(),
self._ctx.node())
def _file_paths(self):
return list(self._ctx)
def _dir_paths(self):
p = list(set(get_dirs_for_path(*self._file_paths)))
p.insert(0, '')
return p
def _paths(self):
return self._dir_paths + self._file_paths
def id(self):
if self.last:
return u'tip'
return self.short_id
def short_id(self):
return self.raw_id[:12]
def parents(self):
Returns list of parents changesets.
return [self.repository.get_changeset(parent.rev())
for parent in self._ctx.parents() if parent.rev() >= 0]
def next(self, branch=None):
if branch and self.branch != branch:
raise VCSError('Branch option used on changeset not belonging '
'to that branch')
def _next(changeset, branch):
try:
next_ = changeset.revision + 1
next_rev = changeset.repository.revisions[next_]
except IndexError:
raise ChangesetDoesNotExistError
cs = changeset.repository.get_changeset(next_rev)
if branch and branch != cs.branch:
return _next(cs, branch)
return cs
return _next(self, branch)
def prev(self, branch=None):
def _prev(changeset, branch):
prev_ = changeset.revision - 1
if prev_ < 0:
raise IndexError
prev_rev = changeset.repository.revisions[prev_]
cs = changeset.repository.get_changeset(prev_rev)
return _prev(cs, branch)
return _prev(self, branch)
def _fix_path(self, path):
@@ -2427,246 +2427,250 @@ h3.files_location {
margin-top: 4px;
}
#graph_content .container .mid .message {
white-space: pre-wrap;
#graph_content .container .mid .message a:hover{
text-decoration: none;
#content #graph_content .message .revision-link,
#changeset_content .container .message .revision-link
{
color:#3F6F9F;
font-weight: bold !important;
#content #graph_content .message .issue-tracker-link,
#changeset_content .container .message .issue-tracker-link{
.right .comments-container{
padding-right: 5px;
margin-top:1px;
float:right;
height:14px;
.right .comments-cnt{
float: left;
color: rgb(136, 136, 136);
padding-right: 2px;
.right .changes{
clear: both;
.right .changes .changed_total {
display: block;
float: right;
text-align: center;
min-width: 45px;
cursor: pointer;
color: #444444;
background: #FEA;
-webkit-border-radius: 0px 0px 0px 6px;
-moz-border-radius: 0px 0px 0px 6px;
border-radius: 0px 0px 0px 6px;
padding: 1px;
.right .changes .added,.changed,.removed {
min-width: 15px;
.right .changes .added {
background: #CFC;
.right .changes .changed {
.right .changes .removed {
background: #FAA;
.right .merge {
padding: 1px 3px 1px 3px;
background-color: #fca062;
font-size: 10px;
font-weight: bold;
color: #ffffff;
text-transform: uppercase;
white-space: nowrap;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
margin-right: 2px;
.right .parent {
color: #666666;
clear:both;
.right .logtags{
padding: 2px 2px 2px 2px;
.right .logtags .branchtag,.right .logtags .tagtag,.right .logtags .booktag{
margin: 0px 2px;
.right .logtags .branchtag,.logtags .branchtag {
background-color: #bfbfbf;
.right .logtags .branchtag a:hover,.logtags .branchtag a{
.right .logtags .branchtag a:hover,.logtags .branchtag a:hover{
.right .logtags .tagtag,.logtags .tagtag {
background-color: #62cffc;
.right .logtags .tagtag a:hover,.logtags .tagtag a{
.right .logtags .tagtag a:hover,.logtags .tagtag a:hover{
.right .logbooks .bookbook,.logbooks .bookbook {
padding: 1px 3px 2px;
.right .logbooks .bookbook,.logbooks .bookbook,.right .logtags .bookbook,.logtags .bookbook {
background-color: #46A546;
font-size: 9.75px;
.right .logbooks .bookbook,.logbooks .bookbook a{
.right .logbooks .bookbook,.logbooks .bookbook a,.right .logtags .bookbook,.logtags .bookbook a{
.right .logbooks .bookbook,.logbooks .bookbook a:hover{
.right .logbooks .bookbook,.logbooks .bookbook a:hover,.right .logtags .bookbook,.logtags .bookbook a:hover{
div.browserblock {
overflow: hidden;
border: 1px solid #ccc;
background: #f8f8f8;
font-size: 100%;
line-height: 125%;
padding: 0;
-webkit-border-radius: 6px 6px 0px 0px;
-moz-border-radius: 6px 6px 0px 0px;
border-radius: 6px 6px 0px 0px;
div.browserblock .browser-header {
background: #FFF;
padding: 10px 0px 15px 0px;
width: 100%;
div.browserblock .browser-nav {
float: left
div.browserblock .browser-branch {
div.browserblock .browser-branch label {
color: #4A4A4A;
vertical-align: text-top;
div.browserblock .browser-header span {
margin-left: 5px;
font-weight: 700;
div.browserblock .browser-search {
padding: 8px 8px 0px 5px;
height: 20px;
div.browserblock #node_filter_box {
div.browserblock .search_activate {
div.browserblock .add_node {
padding-left: 5px;
div.browserblock .search_activate a:hover,div.browserblock .add_node a:hover
text-decoration: none !important;
div.browserblock .browser-body {
background: #EEE;
border-top: 1px solid #CCC;
table.code-browser {
border-collapse: collapse;
table.code-browser tr {
margin: 3px;
table.code-browser thead th {
background-color: #EEE;
font-size: 1.1em;
text-align: left;
padding-left: 10px;
table.code-browser tbody td {
table.code-browser .browser-file {
background: url("../images/icons/document_16.png") no-repeat scroll 3px;
height: 16px;
padding-left: 20px;
## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${c.repo_name} ${_('Changelog')} - ${c.rhodecode_name}
</%def>
<%def name="breadcrumbs_links()">
${h.link_to(u'Home',h.url('/'))}
»
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
${_('Changelog')} - ${_('showing ')} ${c.size if c.size <= c.total_cs else c.total_cs} ${_('out of')} ${c.total_cs} ${_('revisions')}
<%def name="page_nav()">
${self.menu('changelog')}
<%def name="main()">
<div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
</div>
<div class="table">
% if c.pagination:
<div id="graph">
<div id="graph_nodes">
<canvas id="graph_canvas"></canvas>
<div id="graph_content">
<div class="container_header">
${h.form(h.url.current(),method='get')}
<div class="info_box" style="float:left">
${h.submit('set',_('Show'),class_="ui-btn")}
${h.text('size',size=1,value=c.size)}
${_('revisions')}
${h.end_form()}
<div id="rev_range_container" style="display:none"></div>
<div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div>
%for cnt,cs in enumerate(c.pagination):
<div id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}">
<div class="left">
<div>
${h.checkbox(cs.short_id,class_="changeset_range")}
<span class="tooltip" title="${h.age(cs.date)}"><a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}"><span class="changeset_id">${cs.revision}:<span class="changeset_hash">${h.short_id(cs.raw_id)}</span></span></a></span>
<div class="author">
<div class="gravatar">
<img alt="gravatar" src="${h.gravatar_url(h.email(cs.author),16)}"/>
<div title="${cs.author}" class="user">${h.person(cs.author)}</div>
<div class="date">${cs.date}</div>
<div class="mid">
<div class="message">${h.urlify_commit(h.wrap_paragraphs(cs.message),c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
<div class="expand"><span class="expandtext">↓ ${_('show more')} ↓</span></div>
<div class="right">
<div class="changes">
<div id="${cs.raw_id}" style="float:right;" class="changed_total tooltip" title="${_('Affected number of files, click to show more details')}">${len(cs.affected_files)}</div>
<div class="comments-container">
%if len(c.comments.get(cs.raw_id,[])) > 0:
<div class="comments-cnt" title="${('comments')}">
<a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
<div class="comments-cnt">${len(c.comments[cs.raw_id])}</div>
<img src="${h.url('/images/icons/comments.png')}">
</a>
%endif
%if cs.parents:
%for p_cs in reversed(cs.parents):
<div class="parent">${_('Parent')}
<span class="changeset_id">${p_cs.revision}:<span class="changeset_hash">${h.link_to(h.short_id(p_cs.raw_id),
h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}</span></span>
%endfor
%else:
<div class="parent">${_('No parents')}</div>
<span class="logtags">
%if len(cs.parents)>1:
<span class="merge">${_('merge')}</span>
%if cs.branch:
<span class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
</span>
%if h.is_hg(c.rhodecode_repo):
%for book in cs.bookmarks:
<span class="bookbook" title="${'%s %s' % (_('bookmark'),book)}">
${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
%for tag in cs.tags:
<span class="tagtag" title="${'%s %s' % (_('tag'),tag)}">
${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}</span>
<div class="pagination-wh pagination-left">
${c.pagination.pager('$link_previous ~2~ $link_next')}
<script type="text/javascript" src="${h.url('/js/graph.js')}"></script>
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function(){
//Monitor range checkboxes and build a link to changesets
//ranges
var checkboxes = YUD.getElementsByClassName('changeset_range');
var url_tmpl = "${h.url('changeset_home',repo_name=c.repo_name,revision='__REVRANGE__')}";
YUE.on(checkboxes,'click',function(e){
var checked_checkboxes = [];
for (pos in checkboxes){
if(checkboxes[pos].checked){
checked_checkboxes.push(checkboxes[pos]);
if(checked_checkboxes.length>1){
var rev_end = checked_checkboxes[0].name;
var rev_start = checked_checkboxes[checked_checkboxes.length-1].name;
var url = url_tmpl.replace('__REVRANGE__',
rev_start+'...'+rev_end);
var link = "<a href="+url+">${_('Show selected changes __S -> __E')}</a>"
link = link.replace('__S',rev_start);
link = link.replace('__E',rev_end);
YUD.get('rev_range_container').innerHTML = link;
YUD.setStyle('rev_range_container','display','');
else{
YUD.setStyle('rev_range_container','display','none');
});
var msgs = YUQ('.message');
// get first element height
var el = YUQ('#graph_content .container')[0];
var row_h = el.clientHeight;
for(var i=0;i<msgs.length;i++){
var m = msgs[i];
var h = m.clientHeight;
var pad = YUD.getStyle(m,'padding');
if(h > row_h){
var offset = row_h - (h+12);
YUD.setStyle(m.nextElementSibling,'display','block');
YUD.setStyle(m.nextElementSibling,'margin-top',offset+'px');
};
YUE.on(YUQ('.expand'),'click',function(e){
var elem = e.currentTarget.parentNode.parentNode;
YUD.setStyle(e.currentTarget,'display','none');
YUD.setStyle(elem,'height','auto');
//redraw the graph, max_w and jsdata are global vars
set_canvas(max_w);
var r = new BranchRenderer();
r.render(jsdata,max_w);
})
// Fetch changeset details
YUE.on(YUD.getElementsByClassName('changed_total'),'click',function(e){
var id = e.currentTarget.id
var url = "${h.url('changelog_details',repo_name=c.repo_name,cs='__CS__')}"
var url = url.replace('__CS__',id);
ypjax(url,id,function(){tooltip_activate()});
// change branch filter
YUE.on(YUD.get('branch_filter'),'change',function(e){
var selected_branch = e.currentTarget.options[e.currentTarget.selectedIndex].value;
var url_main = "${h.url('changelog_home',repo_name=c.repo_name)}";
var url = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}";
var url = url.replace('__BRANCH__',selected_branch);
if(selected_branch != ''){
window.location = url;
}else{
window.location = url_main;
Status change: