# HG changeset patch # User Marcin Kuzminski # Date 1286328858 -7200 # Node ID f99075170eb437d8759b9b70ab770a2dcbcd890b # Parent b75b77ef649dce2b5fc7a11f9a7860de7b4cab54 more renames for rhode code !! diff -r b75b77ef649d -r f99075170eb4 README.rst --- a/README.rst Wed Oct 06 03:22:52 2010 +0200 +++ b/README.rst Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ -------------------------------------- -Pylons based replacement for hgwebdir -------------------------------------- +-------------------------------------------------------------- +Pylons based repository management for mercurial (and soon git) +-------------------------------------------------------------- Fully customizable, with authentication, permissions. Based on vcs library. @@ -13,7 +13,9 @@ - diffs annotations and source code all colored by pygments. - mercurial branch graph and yui-flot powered graphs with zooming and statistics - admin interface for performing user/permission managements as well as repository - management. + management. +- server side forks, it's possible to fork a project and hack it free without + breaking the main. - full text search of source codes with indexing daemons using whoosh (no external search servers required all in one application) - async tasks for speed and performance using celery (works without them too) @@ -32,8 +34,7 @@ - code review based on hg-review (when it's stable) - git support (when vcs can handle it - almost there !) - commit based wikis -- in server forks -- clonning from remote repositories into hg-app +- clonning from remote repositories into rhodecode (git/mercurial) - other cools stuff that i can figure out (or You can help me figure out) .. note:: @@ -45,14 +46,14 @@ Installation ------------- -- I highly recommend to install new virtualenv for hg-app see +- I highly recommend to install new virtualenv for rhodecode see http://pypi.python.org/pypi/virtualenv -- Create new virtualenv using `virtualenv --no-site-packages /var/www/hgapp-venv` - this will install new virtual env into /var/www/hgapp-venv. +- Create new virtualenv using `virtualenv --no-site-packages /var/www/rhodecode-venv` + this will install new virtual env into /var/www/rhodecode-venv. Activate the virtualenv by running - `source activate /var/www/hgapp-venv/bin/activate` -- Make a folder for hg-app somewhere on the filesystem for example /var/www/hgapp -- Download and extract http://bitbucket.org/marcinkuzminski/hg-app/get/tip.zip + `source activate /var/www/rhodecode-venv/bin/activate` +- Make a folder for rhodecode somewhere on the filesystem for example /var/www/rhodecode +- Download and extract http://bitbucket.org/marcinkuzminski/rhodecode/get/tip.zip into created directory. - Run `python setup.py install` in order to install the application and all needed dependencies. Make sure that You're using activated virutalenv @@ -66,14 +67,14 @@ - Default permissions on each repository is read, and owner is admin. So remember to update these. - In order to use full power of async tasks, You must install message broker - preferably rabbitmq and start celeryd daemon together with hg-app. + preferably rabbitmq and start celeryd daemon together with rhodecode. The app should gain a lot of speed and become much more responsible. For installation instructions You can visit: http://ask.github.com/celery/getting-started/index.html. -- All needed configs are inside hg-app ie. celeryconfig.py , production.ini +- All needed configs are inside rhodecode ie. celeryconfig.py , production.ini You can configure the email, ports, loggers, workers from there. - For full text search You can either put crontab entry for - `python /var/www/hgapp/rhodecode/lib/indexers/daemon.py incremental ` + `python /var/www/rhodecode/rhodecode/lib/indexers/daemon.py incremental ` or run indexer from admin panel. This will scann the repos given in the application setup or given path for daemon.py and each scann in incremental mode will scann only changed files, diff -r b75b77ef649d -r f99075170eb4 development.ini --- a/development.ini Wed Oct 06 03:22:52 2010 +0200 +++ b/development.ini Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ ################################################################################ ################################################################################ -# hg-app - Pylons environment configuration # +# rhodecode - Pylons environment configuration # # # # The %(here)s variable will be replaced with the parent directory of this file# ################################################################################ @@ -10,11 +10,11 @@ ################################################################################ ## Uncomment and replace with the address which should receive ## ## any error reports after application crash ## -## Additionally those settings will be used by hg-app mailing system ## +## Additionally those settings will be used by rhodecode mailing system ## ################################################################################ #email_to = admin@localhost #error_email_from = paste_error@localhost -#app_email_from = hg-app-noreply@localhost +#app_email_from = rhodecode-noreply@localhost #error_message = #smtp_server = mail.server.com @@ -66,7 +66,7 @@ ##that is also used by the cache system. beaker.session.type = file -beaker.session.key = hg-app +beaker.session.key = rhodecode beaker.session.secret = g654dcno0-9873jhgfreyu beaker.session.timeout = 36000 diff -r b75b77ef649d -r f99075170eb4 init.d/hg_app_daemon --- a/init.d/hg_app_daemon Wed Oct 06 03:22:52 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -#!/sbin/runscript -######################################## -#### THIS IS AN GENTOO INIT.D SCRIPT#### -######################################## - -APP_NAME="rhodecode" -APP_HOMEDIR="marcink/python_workspace" -APP_PATH="/home/$APP_HOMEDIR/$APP_NAME" - -CONF_NAME="production.ini" - -PID_PATH="$APP_PATH/$APP_NAME.pid" -LOG_PATH="$APP_PATH/$APP_NAME.log" - -PYTHON_PATH="/home/$APP_HOMEDIR/v-env" - -RUN_AS="marcink" - -DAEMON="$PYTHON_PATH/bin/paster" - -DAEMON_OPTS="serve --daemon \ ---user=$RUN_AS \ ---group=$RUN_AS \ ---pid-file=$PID_PATH \ ---log-file=$LOG_PATH $APP_PATH/$CONF_NAME" - -#extra options -opts="${opts} restartdelay" - -depend() { - need nginx -} - -start() { - ebegin "Starting $APP_NAME" - start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ - --start --quiet \ - --pidfile $PID_PATH \ - --user $RUN_AS \ - --exec $DAEMON -- $DAEMON_OPTS - eend $? -} - -stop() { - ebegin "Stopping $APP_NAME" - start-stop-daemon -d $APP_PATH \ - --stop --quiet \ - --pidfile $PID_PATH || echo "$APP_NAME - Not running!" - if [ -f $PID_PATH ]; then - rm $PID_PATH - fi - eend $? -} - -restartdelay() { - #stop() - echo "sleep3" - sleep 3 - - #start() -} diff -r b75b77ef649d -r f99075170eb4 init.d/hg_app_daemon2 --- a/init.d/hg_app_daemon2 Wed Oct 06 03:22:52 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,77 +0,0 @@ -#!/bin/sh -e -######################################## -#### THIS IS AN DEBIAN INIT.D SCRIPT#### -######################################## - -### BEGIN INIT INFO -# Provides: hg-app -# Required-Start: $all -# Required-Stop: $all -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: starts instance of hg-app -# Description: starts instance of hg-app using start-stop-daemon -### END INIT INFO - -APP_NAME="rhodecode" -APP_HOMEDIR="marcink/python_workspace" -APP_PATH="/home/$APP_HOMEDIR/$APP_NAME" - -CONF_NAME="production.ini" - -PID_PATH="$APP_PATH/$APP_NAME.pid" -LOG_PATH="$APP_PATH/$APP_NAME.log" - -PYTHON_PATH="/home/$APP_HOMEDIR/v-env" - -RUN_AS="marcink" - -DAEMON="$PYTHON_PATH/bin/paster" - -DAEMON_OPTS="serve --daemon \ ---user=$RUN_AS \ ---group=$RUN_AS \ ---pid-file=$PID_PATH \ ---log-file=$LOG_PATH $APP_PATH/$CONF_NAME" - - -case "$1" in - start) - echo "Starting $APP_NAME" - start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ - --start --quiet \ - --pidfile $PID_PATH \ - --user $RUN_AS \ - --exec $DAEMON -- $DAEMON_OPTS - ;; - stop) - echo "Stopping $APP_NAME" - start-stop-daemon -d $APP_PATH \ - --stop --quiet \ - --pidfile $PID_PATH || echo "$APP_NAME - Not running!" - if [ -f $PID_PATH ]; then - rm $PID_PATH - fi - ;; - restart) - echo "Restarting $APP_NAME" - ### stop ### - echo "Stopping $APP_NAME" - start-stop-daemon -d $APP_PATH \ - --stop --quiet \ - --pidfile $PID_PATH || echo "$APP_NAME - Not running!" - if [ -f $PID_PATH ]; then - rm $PID_PATH - fi - ### start ### - echo "Starting $APP_NAME" - start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ - --start --quiet \ - --pidfile $PID_PATH \ - --user $RUN_AS \ - --exec $DAEMON -- $DAEMON_OPTS - ;; - *) - echo "Usage: $0 {start|stop|restart}" - exit 1 -esac \ No newline at end of file diff -r b75b77ef649d -r f99075170eb4 init.d/rhodecode_daemon --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init.d/rhodecode_daemon Wed Oct 06 03:34:18 2010 +0200 @@ -0,0 +1,61 @@ +#!/sbin/runscript +######################################## +#### THIS IS AN GENTOO INIT.D SCRIPT#### +######################################## + +APP_NAME="rhodecode" +APP_HOMEDIR="marcink/python_workspace" +APP_PATH="/home/$APP_HOMEDIR/$APP_NAME" + +CONF_NAME="production.ini" + +PID_PATH="$APP_PATH/$APP_NAME.pid" +LOG_PATH="$APP_PATH/$APP_NAME.log" + +PYTHON_PATH="/home/$APP_HOMEDIR/v-env" + +RUN_AS="marcink" + +DAEMON="$PYTHON_PATH/bin/paster" + +DAEMON_OPTS="serve --daemon \ +--user=$RUN_AS \ +--group=$RUN_AS \ +--pid-file=$PID_PATH \ +--log-file=$LOG_PATH $APP_PATH/$CONF_NAME" + +#extra options +opts="${opts} restartdelay" + +depend() { + need nginx +} + +start() { + ebegin "Starting $APP_NAME" + start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ + --start --quiet \ + --pidfile $PID_PATH \ + --user $RUN_AS \ + --exec $DAEMON -- $DAEMON_OPTS + eend $? +} + +stop() { + ebegin "Stopping $APP_NAME" + start-stop-daemon -d $APP_PATH \ + --stop --quiet \ + --pidfile $PID_PATH || echo "$APP_NAME - Not running!" + if [ -f $PID_PATH ]; then + rm $PID_PATH + fi + eend $? +} + +restartdelay() { + #stop() + echo "sleep3" + sleep 3 + + #start() +} diff -r b75b77ef649d -r f99075170eb4 init.d/rhodecode_daemon2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init.d/rhodecode_daemon2 Wed Oct 06 03:34:18 2010 +0200 @@ -0,0 +1,77 @@ +#!/bin/sh -e +######################################## +#### THIS IS AN DEBIAN INIT.D SCRIPT#### +######################################## + +### BEGIN INIT INFO +# Provides: rhodecode +# Required-Start: $all +# Required-Stop: $all +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: starts instance of rhodecode +# Description: starts instance of rhodecode using start-stop-daemon +### END INIT INFO + +APP_NAME="rhodecode" +APP_HOMEDIR="marcink/python_workspace" +APP_PATH="/home/$APP_HOMEDIR/$APP_NAME" + +CONF_NAME="production.ini" + +PID_PATH="$APP_PATH/$APP_NAME.pid" +LOG_PATH="$APP_PATH/$APP_NAME.log" + +PYTHON_PATH="/home/$APP_HOMEDIR/v-env" + +RUN_AS="marcink" + +DAEMON="$PYTHON_PATH/bin/paster" + +DAEMON_OPTS="serve --daemon \ +--user=$RUN_AS \ +--group=$RUN_AS \ +--pid-file=$PID_PATH \ +--log-file=$LOG_PATH $APP_PATH/$CONF_NAME" + + +case "$1" in + start) + echo "Starting $APP_NAME" + start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ + --start --quiet \ + --pidfile $PID_PATH \ + --user $RUN_AS \ + --exec $DAEMON -- $DAEMON_OPTS + ;; + stop) + echo "Stopping $APP_NAME" + start-stop-daemon -d $APP_PATH \ + --stop --quiet \ + --pidfile $PID_PATH || echo "$APP_NAME - Not running!" + if [ -f $PID_PATH ]; then + rm $PID_PATH + fi + ;; + restart) + echo "Restarting $APP_NAME" + ### stop ### + echo "Stopping $APP_NAME" + start-stop-daemon -d $APP_PATH \ + --stop --quiet \ + --pidfile $PID_PATH || echo "$APP_NAME - Not running!" + if [ -f $PID_PATH ]; then + rm $PID_PATH + fi + ### start ### + echo "Starting $APP_NAME" + start-stop-daemon -d $APP_PATH -e PYTHON_EGG_CACHE="/tmp" \ + --start --quiet \ + --pidfile $PID_PATH \ + --user $RUN_AS \ + --exec $DAEMON -- $DAEMON_OPTS + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac \ No newline at end of file diff -r b75b77ef649d -r f99075170eb4 production.ini --- a/production.ini Wed Oct 06 03:22:52 2010 +0200 +++ b/production.ini Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ ################################################################################ ################################################################################ -# hg-app - Pylons environment configuration # +# rhodecode - Pylons environment configuration # # # # The %(here)s variable will be replaced with the parent directory of this file# ################################################################################ @@ -10,11 +10,11 @@ ################################################################################ ## Uncomment and replace with the address which should receive ## ## any error reports after application crash ## -## Additionally those settings will be used by hg-app mailing system ## +## Additionally those settings will be used by rhodecode mailing system ## ################################################################################ #email_to = admin@localhost #error_email_from = paste_error@localhost -#app_email_from = hg-app-noreply@localhost +#app_email_from = rhodecode-noreply@localhost #error_message = #smtp_server = mail.server.com @@ -66,7 +66,7 @@ ##that is also used by the cache system. beaker.session.type = file -beaker.session.key = hg-app +beaker.session.key = rhodecode beaker.session.secret = g654dcno0-9873jhgfreyu beaker.session.timeout = 36000 diff -r b75b77ef649d -r f99075170eb4 rhodecode/config/deployment.ini_tmpl --- a/rhodecode/config/deployment.ini_tmpl Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/config/deployment.ini_tmpl Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ ################################################################################ ################################################################################ -# hg-app - Pylons environment configuration # +# rhodecode - Pylons environment configuration # # # # The %(here)s variable will be replaced with the parent directory of this file# ################################################################################ @@ -10,11 +10,11 @@ ################################################################################ ## Uncomment and replace with the address which should receive ## ## any error reports after application crash ## -## Additionally those settings will be used by hg-app mailing system ## +## Additionally those settings will be used by rhodecode mailing system ## ################################################################################ #email_to = admin@localhost #error_email_from = paste_error@localhost -#app_email_from = hg-app-noreply@localhost +#app_email_from = rhodecode-noreply@localhost #error_message = #smtp_server = mail.server.com @@ -67,7 +67,7 @@ ##that is also used by the cache system. beaker.session.type = file -beaker.session.key = hg-app +beaker.session.key = rhodecode beaker.session.secret = ${app_instance_secret} beaker.session.timeout = 36000 diff -r b75b77ef649d -r f99075170eb4 rhodecode/controllers/admin/settings.py --- a/rhodecode/controllers/admin/settings.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/controllers/admin/settings.py Wed Oct 06 03:34:18 2010 +0200 @@ -33,7 +33,7 @@ from rhodecode.lib.base import BaseController, render from rhodecode.lib.utils import repo2db_mapper, invalidate_cache, \ set_rhodecode_config, get_hg_settings, get_hg_ui_settings, make_ui -from rhodecode.model.db import User, UserLog, HgAppSettings, HgAppUi +from rhodecode.model.db import User, UserLog, RhodeCodeSettings, RhodeCodeUi from rhodecode.model.forms import UserForm, ApplicationSettingsForm, \ ApplicationUiSettingsForm from rhodecode.model.hg_model import HgModel @@ -116,12 +116,12 @@ form_result = application_form.to_python(dict(request.POST)) try: - hgsettings1 = self.sa.query(HgAppSettings)\ - .filter(HgAppSettings.app_settings_name == 'title').one() + hgsettings1 = self.sa.query(RhodeCodeSettings)\ + .filter(RhodeCodeSettings.app_settings_name == 'title').one() hgsettings1.app_settings_value = form_result['rhodecode_title'] - hgsettings2 = self.sa.query(HgAppSettings)\ - .filter(HgAppSettings.app_settings_name == 'realm').one() + hgsettings2 = self.sa.query(RhodeCodeSettings)\ + .filter(RhodeCodeSettings.app_settings_name == 'realm').one() hgsettings2.app_settings_value = form_result['rhodecode_realm'] @@ -155,22 +155,22 @@ try: - hgsettings1 = self.sa.query(HgAppUi)\ - .filter(HgAppUi.ui_key == 'push_ssl').one() + hgsettings1 = self.sa.query(RhodeCodeUi)\ + .filter(RhodeCodeUi.ui_key == 'push_ssl').one() hgsettings1.ui_value = form_result['web_push_ssl'] - hgsettings2 = self.sa.query(HgAppUi)\ - .filter(HgAppUi.ui_key == '/').one() + hgsettings2 = self.sa.query(RhodeCodeUi)\ + .filter(RhodeCodeUi.ui_key == '/').one() hgsettings2.ui_value = form_result['paths_root_path'] #HOOKS - hgsettings3 = self.sa.query(HgAppUi)\ - .filter(HgAppUi.ui_key == 'changegroup.update').one() + hgsettings3 = self.sa.query(RhodeCodeUi)\ + .filter(RhodeCodeUi.ui_key == 'changegroup.update').one() hgsettings3.ui_active = bool(form_result['hooks_changegroup_update']) - hgsettings4 = self.sa.query(HgAppUi)\ - .filter(HgAppUi.ui_key == 'changegroup.repo_size').one() + hgsettings4 = self.sa.query(RhodeCodeUi)\ + .filter(RhodeCodeUi.ui_key == 'changegroup.repo_size').one() hgsettings4.ui_active = bool(form_result['hooks_changegroup_repo_size']) diff -r b75b77ef649d -r f99075170eb4 rhodecode/controllers/login.py --- a/rhodecode/controllers/login.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/controllers/login.py Wed Oct 06 03:34:18 2010 +0200 @@ -101,7 +101,7 @@ form_result = register_form.to_python(dict(request.POST)) form_result['active'] = c.auto_active user_model.create_registration(form_result) - h.flash(_('You have successfully registered into hg-app'), + h.flash(_('You have successfully registered into rhodecode'), category='success') return redirect(url('login_home')) diff -r b75b77ef649d -r f99075170eb4 rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/lib/celerylib/tasks.py Wed Oct 06 03:34:18 2010 +0200 @@ -23,10 +23,10 @@ return sa def get_hg_settings(): - from rhodecode.model.db import HgAppSettings + from rhodecode.model.db import RhodeCodeSettings try: sa = get_session() - ret = sa.query(HgAppSettings).all() + ret = sa.query(RhodeCodeSettings).all() finally: sa.remove() @@ -39,10 +39,10 @@ return settings def get_hg_ui_settings(): - from rhodecode.model.db import HgAppUi + from rhodecode.model.db import RhodeCodeUi try: sa = get_session() - ret = sa.query(HgAppUi).all() + ret = sa.query(RhodeCodeUi).all() finally: sa.remove() @@ -239,8 +239,8 @@ sa.rollback() run_task(send_email, user_email, - "Your new hg-app password", - 'Your new hg-app password:%s' % (new_passwd)) + "Your new rhodecode password", + 'Your new rhodecode password:%s' % (new_passwd)) log.info('send new password mail to %s', user_email) diff -r b75b77ef649d -r f99075170eb4 rhodecode/lib/db_manage.py --- a/rhodecode/lib/db_manage.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/lib/db_manage.py Wed Oct 06 03:34:18 2010 +0200 @@ -34,7 +34,7 @@ from rhodecode.lib.auth import get_crypt_password from rhodecode.lib.utils import ask_ok from rhodecode.model import init_model -from rhodecode.model.db import User, Permission, HgAppUi, HgAppSettings, \ +from rhodecode.model.db import User, Permission, RhodeCodeUi, RhodeCodeSettings, \ UserToPerm from rhodecode.model import meta from sqlalchemy.engine import create_engine @@ -107,50 +107,50 @@ log.error('You entered wrong path: %s', path) sys.exit() - hooks1 = HgAppUi() + hooks1 = RhodeCodeUi() hooks1.ui_section = 'hooks' hooks1.ui_key = 'changegroup.update' hooks1.ui_value = 'hg update >&2' - hooks2 = HgAppUi() + hooks2 = RhodeCodeUi() hooks2.ui_section = 'hooks' hooks2.ui_key = 'changegroup.repo_size' hooks2.ui_value = 'python:rhodecode.lib.hooks.repo_size' - web1 = HgAppUi() + web1 = RhodeCodeUi() web1.ui_section = 'web' web1.ui_key = 'push_ssl' web1.ui_value = 'false' - web2 = HgAppUi() + web2 = RhodeCodeUi() web2.ui_section = 'web' web2.ui_key = 'allow_archive' web2.ui_value = 'gz zip bz2' - web3 = HgAppUi() + web3 = RhodeCodeUi() web3.ui_section = 'web' web3.ui_key = 'allow_push' web3.ui_value = '*' - web4 = HgAppUi() + web4 = RhodeCodeUi() web4.ui_section = 'web' web4.ui_key = 'baseurl' web4.ui_value = '/' - paths = HgAppUi() + paths = RhodeCodeUi() paths.ui_section = 'paths' paths.ui_key = '/' paths.ui_value = os.path.join(path, '*') - hgsettings1 = HgAppSettings() + hgsettings1 = RhodeCodeSettings() hgsettings1.app_settings_name = 'realm' - hgsettings1.app_settings_value = 'hg-app authentication' + hgsettings1.app_settings_value = 'rhodecode authentication' - hgsettings2 = HgAppSettings() + hgsettings2 = RhodeCodeSettings() hgsettings2.app_settings_name = 'title' - hgsettings2.app_settings_value = 'hg-app' + hgsettings2.app_settings_value = 'rhodecode' try: self.sa.add(hooks1) @@ -215,8 +215,8 @@ ('hg.create.repository', 'Repository create'), ('hg.create.none', 'Repository creation disabled'), ('hg.register.none', 'Register disabled'), - ('hg.register.manual_activate', 'Register new user with hg-app without manual activation'), - ('hg.register.auto_activate', 'Register new user with hg-app without auto activation'), + ('hg.register.manual_activate', 'Register new user with rhodecode without manual activation'), + ('hg.register.auto_activate', 'Register new user with rhodecode without auto activation'), ] for p in perms: diff -r b75b77ef649d -r f99075170eb4 rhodecode/lib/indexers/daemon.py --- a/rhodecode/lib/indexers/daemon.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/lib/indexers/daemon.py Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ #!/usr/bin/env python # encoding: utf-8 -# whoosh indexer daemon for hg-app +# whoosh indexer daemon for rhodecode # Copyright (C) 2009-2010 Marcin Kuzminski # # This program is free software; you can redistribute it and/or diff -r b75b77ef649d -r f99075170eb4 rhodecode/lib/middleware/simplehg.py --- a/rhodecode/lib/middleware/simplehg.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/lib/middleware/simplehg.py Wed Oct 06 03:34:18 2010 +0200 @@ -129,7 +129,7 @@ if action == 'push': self.__invalidate_cache(repo_name) messages = [] - messages.append('thank you for using hg-app') + messages.append('thank you for using rhodecode') return self.msg_wrapper(app, environ, start_response, messages) else: diff -r b75b77ef649d -r f99075170eb4 rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/lib/utils.py Wed Oct 06 03:34:18 2010 +0200 @@ -26,7 +26,7 @@ from mercurial import ui, config, hg from mercurial.error import RepoError from rhodecode.model import meta -from rhodecode.model.db import Repository, User, HgAppUi, HgAppSettings, UserLog +from rhodecode.model.db import Repository, User, RhodeCodeUi, RhodeCodeSettings, UserLog from vcs.backends.base import BaseChangeset from vcs.utils.lazy import LazyProperty import logging @@ -127,7 +127,7 @@ def get_hg_ui_cached(): try: sa = meta.Session - ret = sa.query(HgAppUi).all() + ret = sa.query(RhodeCodeUi).all() finally: meta.Session.remove() return ret @@ -136,7 +136,7 @@ def get_hg_settings(): try: sa = meta.Session - ret = sa.query(HgAppSettings).all() + ret = sa.query(RhodeCodeSettings).all() finally: meta.Session.remove() @@ -151,7 +151,7 @@ def get_hg_ui_settings(): try: sa = meta.Session - ret = sa.query(HgAppUi).all() + ret = sa.query(RhodeCodeUi).all() finally: meta.Session.remove() diff -r b75b77ef649d -r f99075170eb4 rhodecode/model/db.py --- a/rhodecode/model/db.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/model/db.py Wed Oct 06 03:34:18 2010 +0200 @@ -7,14 +7,14 @@ log = logging.getLogger(__name__) -class HgAppSettings(Base): +class RhodeCodeSettings(Base): __tablename__ = 'rhodecode_settings' __table_args__ = (UniqueConstraint('app_settings_name'), {'useexisting':True}) app_settings_id = Column("app_settings_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) app_settings_name = Column("app_settings_name", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) app_settings_value = Column("app_settings_value", TEXT(length=None, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None) -class HgAppUi(Base): +class RhodeCodeUi(Base): __tablename__ = 'rhodecode_ui' __table_args__ = {'useexisting':True} ui_id = Column("ui_id", INTEGER(), nullable=False, unique=True, default=None, primary_key=True) diff -r b75b77ef649d -r f99075170eb4 rhodecode/templates/login.html --- a/rhodecode/templates/login.html Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/templates/login.html Wed Oct 06 03:34:18 2010 +0200 @@ -2,7 +2,7 @@ - ${_('Sign In to hg-app')} + ${_('Sign In to rhodecode')} @@ -19,7 +19,7 @@
-
${_('Sign In to hg-app')}
+
${_('Sign In to rhodecode')}
diff -r b75b77ef649d -r f99075170eb4 rhodecode/templates/password_reset.html --- a/rhodecode/templates/password_reset.html Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/templates/password_reset.html Wed Oct 06 03:34:18 2010 +0200 @@ -2,7 +2,7 @@ - ${_('Reset You password to hg-app')} + ${_('Reset You password to rhodecode')} @@ -19,7 +19,7 @@
-
${_('Reset You password to hg-app')}
+
${_('Reset You password to rhodecode')}
diff -r b75b77ef649d -r f99075170eb4 rhodecode/templates/register.html --- a/rhodecode/templates/register.html Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/templates/register.html Wed Oct 06 03:34:18 2010 +0200 @@ -2,7 +2,7 @@ - ${_('Sign Up to hg-app')} + ${_('Sign Up to rhodecode')} @@ -19,7 +19,7 @@
-
${_('Sign Up to hg-app')}
+
${_('Sign Up to rhodecode')}
diff -r b75b77ef649d -r f99075170eb4 rhodecode/tests/functional/test_login.py --- a/rhodecode/tests/functional/test_login.py Wed Oct 06 03:22:52 2010 +0200 +++ b/rhodecode/tests/functional/test_login.py Wed Oct 06 03:34:18 2010 +0200 @@ -62,7 +62,7 @@ def test_register(self): response = self.app.get(url(controller='login', action='register')) - assert 'Sign Up to hg-app' in response.body, 'wrong page for user registration' + assert 'Sign Up to rhodecode' in response.body, 'wrong page for user registration' def test_register_err_same_username(self): response = self.app.post(url(controller='login', action='register'), @@ -104,7 +104,7 @@ 'lastname':lastname}) print response.body assert response.status == '302 Found', 'Wrong response from register page got %s' % response.status - assert 'You have successfully registered into hg-app' in response.session['flash'][0], 'No flash message about user registration' + assert 'You have successfully registered into rhodecode' in response.session['flash'][0], 'No flash message about user registration' ret = self.sa.query(User).filter(User.username == 'test_regular4').one() assert ret.username == username , 'field mismatch %s %s' % (ret.username, username) @@ -140,7 +140,7 @@ response = self.app.post(url(controller='login', action='password_reset'), {'email':email, }) print response.session['flash'] - assert 'You have successfully registered into hg-app' in response.session['flash'][0], 'No flash message about user registration' + assert 'You have successfully registered into rhodecode' in response.session['flash'][0], 'No flash message about user registration' assert 'Your new password was sent' in response.session['flash'][1], 'No flash message about password reset' diff -r b75b77ef649d -r f99075170eb4 setup.py --- a/setup.py Wed Oct 06 03:22:52 2010 +0200 +++ b/setup.py Wed Oct 06 03:34:18 2010 +0200 @@ -7,10 +7,10 @@ from setuptools import setup, find_packages setup( - name='HgApp-%s' % get_version(), + name='RhodeCode-%s' % get_version(), version=get_version(), description='Mercurial repository serving and browsing app', - keywords='mercurial web hgwebdir replacement serving hgweb', + keywords='mercurial web hgwebdir replacement serving hgweb rhodecode', license='BSD', author='marcin kuzminski', author_email='marcin@python-works.com', diff -r b75b77ef649d -r f99075170eb4 test.ini --- a/test.ini Wed Oct 06 03:22:52 2010 +0200 +++ b/test.ini Wed Oct 06 03:34:18 2010 +0200 @@ -1,6 +1,6 @@ ################################################################################ ################################################################################ -# hg-app - Pylons environment configuration # +# rhodecode - Pylons environment configuration # # # # The %(here)s variable will be replaced with the parent directory of this file# ################################################################################ @@ -10,11 +10,11 @@ ################################################################################ ## Uncomment and replace with the address which should receive ## ## any error reports after application crash ## -## Additionally those settings will be used by hg-app mailing system ## +## Additionally those settings will be used by rhodecode mailing system ## ################################################################################ #email_to = admin@localhost #error_email_from = paste_error@localhost -#app_email_from = hg-app-noreply@localhost +#app_email_from = rhodecode-noreply@localhost #error_message = #smtp_server = mail.server.com @@ -66,7 +66,7 @@ ##that is also used by the cache system. beaker.session.type = file -beaker.session.key = hg-app +beaker.session.key = rhodecode beaker.session.secret = g654dcno0-9873jhgfreyu beaker.session.timeout = 36000