Changeset - bee56f209c40
[Not reviewed]
Marcin Kuzminski - 15 years ago 2010-11-10 01:14:44
marcin@python-works.com
fixes few bugs
- fixed #53 python2.5 incompatible enumerate calls
- fixed #52 disable mercurial extension for web
- fixed #51 deleting repositories don't delete it's dependent objects
- small css updated
10 files changed with 55 insertions and 22 deletions:
0 comments (0 inline, 0 general)
docs/changelog.rst
Show inline comments
 
@@ -3,6 +3,16 @@
 
Changelog
 
=========
 

	
 

	
 
1.0.1 (**2010-11-10**)
 
----------------------
 

	
 
- fixed #53 python2.5 incompatible enumerate calls
 
- fixed #52 disable mercurial extension for web
 
- fixed #51 deleting repositories don't delete it's dependent objects
 
- small css updated
 

	
 

	
 
1.0.0 (**2010-11-02**)
 
----------------------
 

	
docs/installation.rst
Show inline comments
 
@@ -5,12 +5,12 @@ Installation
 

	
 
``RhodeCode`` is written entirely in Python, but in order to use it's full
 
potential there are some third-party requirements. When RhodeCode is used 
 
together with celery You have to install some kind of message broker,
 
together with celery_ You have to install some kind of message broker,
 
recommended one is rabbitmq_ to make the async tasks work.
 

	
 
Of course RhodeCode works in sync mode also, then You don't have to install
 
any third party apps. Celery_ will give You large speed improvement when using
 
many big repositories. If You plan to use it for 2 or 3 small repositories, it
 
many big repositories. If You plan to use it for 5 or 10 small repositories, it
 
will work just fine without celery running.
 
   
 
After You decide to Run it with celery make sure You run celeryd and
 
@@ -49,8 +49,9 @@ Step by step installation example
 
---------------------------------
 

	
 

	
 
- Assuming You have installed virtualenv_ create one using. The `--no-site-packages`
 
  will make sure non of Your system libs are linked with this virtualenv_  
 
- Assuming You have installed virtualenv_ create one using. 
 
  The `--no-site-packages` will make sure non of Your system libs are linked 
 
  with this virtualenv_  
 

	
 
::
 

	
docs/setup.rst
Show inline comments
 
@@ -40,6 +40,18 @@ Setting up the application
 
- Default permissions on each repository is read, and owner is admin. So 
 
  remember to update these if needed.
 
  
 
Note
 
----
 

	
 
RhodeCode when running without the celery it's running all it's task in sync
 
mode, for first few times when visiting summary page You can notice few
 
slow downs, this is due the statistics building it's cache. After all changesets
 
are parsed it'll take the stats from cache and run much faster. Each summary
 
page display parse at most 250 changesets in order to not stress the cpu, so
 
the full stats are going to be loaded after total_number_of_changesets/250
 
summary page visits.
 

	
 

	
 
    
 
Setting up Whoosh
 
-----------------
 
@@ -53,9 +65,9 @@ Setting up Whoosh
 
When using incremental mode whoosh will check last modification date of each file
 
and add it to reindex if newer file is available. Also indexing daemon checks
 
for removed files and removes them from index. Sometime You might want to rebuild
 
index from scrach, in admin pannel You can check `build from scratch` flag
 
index from scratch, in admin panel You can check `build from scratch` flag
 
and in standalone daemon You can pass `full` instead on incremental to build
 
remove previos index and build new one.
 
remove previous index and build new one.
 

	
 
Nginx virtual host example
 
--------------------------
rhodecode/__init__.py
Show inline comments
 
@@ -24,7 +24,7 @@ versioning implementation: http://semver
 
@author: marcink
 
"""
 

	
 
VERSION = (1, 0, 0,)
 
VERSION = (1, 0, 1,)
 

	
 
__version__ = '.'.join((str(each) for each in VERSION[:4]))
 

	
rhodecode/lib/helpers.py
Show inline comments
 
@@ -203,12 +203,12 @@ class _FilesBreadCrumbs(object):
 
                                        revision=rev, f_path=''))]
 
        paths_l = paths.split('/')
 
        
 
        for cnt, p in enumerate(paths_l, 1):
 
        for cnt, p in enumerate(paths_l):
 
            if p != '':
 
                url_l.append(link_to(p, url('files_home',
 
                                            repo_name=repo_name,
 
                                            revision=rev,
 
                                            f_path='/'.join(paths_l[:cnt]))))
 
                                            f_path='/'.join(paths_l[:cnt + 1]))))
 

	
 
        return literal('/'.join(url_l))
 

	
 
@@ -219,9 +219,9 @@ class CodeHtmlFormatter(HtmlFormatter):
 
        return self._wrap_div(self._wrap_pre(self._wrap_code(source)))
 

	
 
    def _wrap_code(self, source):
 
        for cnt, it in enumerate(source, 1):
 
        for cnt, it in enumerate(source):
 
            i, t = it
 
            t = '<div id="#S-%s">%s</div>' % (cnt, t)
 
            t = '<div id="#S-%s">%s</div>' % (cnt + 1, t)
 
            yield i, t
 
def pygmentize(filenode, **kwargs):
 
    """
rhodecode/lib/utils.py
Show inline comments
 
@@ -221,6 +221,11 @@ def make_ui(read_from='file', path=None,
 
            for k, v in cfg.items(section):
 
                baseui.setconfig(section, k, v)
 
                log.debug('settings ui from file[%s]%s:%s', section, k, v)
 

	
 
        for k, v in baseui.configitems('extensions'):
 
            baseui.setconfig('extensions', k, '0')
 
        #just enable mq
 
        baseui.setconfig('extensions', 'mq', '1')
 
        if checkpaths:check_repo_dir(cfg.items('paths'))
 

	
 

	
rhodecode/model/db.py
Show inline comments
 
@@ -89,6 +89,8 @@ class Repository(Base):
 
    user = relation('User')
 
    fork = relation('Repository', remote_side=repo_id)
 
    repo_to_perm = relation('RepoToPerm', cascade='all')
 
    stats = relation('Statistics', cascade='all')
 

	
 
    
 
    def __repr__(self):
 
        return "<Repository('id:%s:%s')>" % (self.repo_id, self.repo_name)
 
@@ -135,5 +137,5 @@ class Statistics(Base):
 
    commit_activity_combined = Column("commit_activity_combined", BLOB(), nullable=False)#JSON data
 
    languages = Column("languages", BLOB(), nullable=False)#JSON data
 
    
 
    repository = relation('Repository')
 
    repository = relation('Repository', single_parent=True)
 

	
rhodecode/public/css/style.css
Show inline comments
 
@@ -270,7 +270,7 @@ text-decoration:none;
 
}
 
 
#header #header-inner #logo a:hover {
 
color:#dabf29;
 
color:#bfe3ff;
 
}
 
 
#header #header-inner #quick,#header #header-inner #quick ul {
 
@@ -419,7 +419,7 @@ padding:12px 9px 7px 24px;
 
}
 
 
#header #header-inner #quick li ul li a.repos,#header #header-inner #quick li ul li a.repos:hover {
 
background:url("../images/icons/folder_edit.png") no-repeat scroll 4px 9px #FFF;
 
background:url("../images/icons/database_edit.png") no-repeat scroll 4px 9px #FFF;
 
width:167px;
 
margin:0;
 
padding:12px 9px 7px 24px;
 
@@ -1010,7 +1010,7 @@ padding:0;
 
#content div.box table th {
 
background:#eee;
 
border-bottom:1px solid #ddd;
 
padding:10px;
 
padding:5px 0px 5px 5px;
 
}
 
 
#content div.box table th.left {
 
@@ -1393,7 +1393,6 @@ background-color:#003367;
 
color:#FFF;
 
display:block;
 
min-width:20px;
 
max-width:400px;
 
text-decoration:none;
 
height:12px;
 
margin-bottom:4px;
 
@@ -1542,7 +1541,7 @@ background:#F88;
 
 
.right .merge {
 
vertical-align:top;
 
font-size:60%;
 
font-size:0.75em;
 
font-weight:700;
 
}
 
 
@@ -1554,13 +1553,15 @@ font-family:monospace;
 
.right .logtags .branchtag {
 
background:#FFF url("../images/icons/arrow_branch.png") no-repeat right 6px;
 
display:block;
 
padding:8px 16px 0 0;
 
font-size:0.8em;
 
padding:11px 16px 0 0;
 
}
 
 
.right .logtags .tagtag {
 
background:#FFF url("../images/icons/tag_blue.png") no-repeat right 6px;
 
display:block;
 
padding:6px 18px 0 0;
 
font-size:0.8em;
 
padding:11px 16px 0 0;
 
}
 
 
div.browserblock {
 
@@ -1701,6 +1702,7 @@ font:100% sans-serif;
 
width:auto;
 
opacity:1px;
 
padding:8px;
 
white-space: pre;
 
}
 
 
.ac {
 
@@ -2024,7 +2026,6 @@ display:block;
 
}
 
 
#content div.box div.title ul.links li a:hover,#content div.box div.title ul.links li.ui-tabs-selected a {
 
background:url("../../images/title_tab_selected.png") no-repeat bottom center;
 
color:#bfe3ff;
 
}
 
rhodecode/templates/files/files_browser.html
Show inline comments
 
@@ -43,8 +43,8 @@
 
				</tr>	          		
 
          		%endif
 
		         	
 
		    %for cnt,node in enumerate(c.files_list,1):
 
				<tr class="parity${cnt%2}">
 
		    %for cnt,node in enumerate(c.files_list):
 
				<tr class="parity${(cnt+1)%2}">
 
		             <td>
 
						${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
 
		             </td>
rhodecode/templates/summary/summary.html
Show inline comments
 
@@ -131,11 +131,13 @@ E.onDOMReady(function(e){
 
						var value = data[k];
 
				  		var td1 = document.createElement('td');
 
				  		td1.width=150;
 
                        
 
				  		var trending_language_label = document.createElement('div');
 
				  		trending_language_label.innerHTML = k;
 
				  		td1.appendChild(trending_language_label);
 

	
 
				  		var td2 = document.createElement('td');
 
				  		td2.setAttribute('style','padding-right: 12px ! important;');
 
			  		    var trending_language = document.createElement('div');
 
			  		    trending_language.title = k;
 
			  		    trending_language.innerHTML = "<b>"+percentage+"% "+value+" ${_('files')}</b>";
0 comments (0 inline, 0 general)