# HG changeset patch # User Marcin Kuzminski # Date 1318035603 -7200 # Node ID 2afe9320d5e68ce583ca8a7503fd10d349e35ac9 # Parent 7d64456775adc9334eb077e9434346179d6e187c updated docstrings diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/lib/auth.py --- a/rhodecode/lib/auth.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/lib/auth.py Sat Oct 08 03:00:03 2011 +0200 @@ -6,8 +6,8 @@ authentication and permission libraries :created_on: Apr 4, 2010 - :copyright: (c) 2010 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/lib/backup_manager.py --- a/rhodecode/lib/backup_manager.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/lib/backup_manager.py Sat Oct 08 03:00:03 2011 +0200 @@ -7,8 +7,8 @@ repositories and send it to backup server using RSA key via ssh. :created_on: Feb 28, 2010 - :copyright: (c) 2010 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/lib/exceptions.py --- a/rhodecode/lib/exceptions.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/lib/exceptions.py Sat Oct 08 03:00:03 2011 +0200 @@ -6,8 +6,8 @@ Set of custom exceptions used in RhodeCode :created_on: Nov 17, 2010 - :copyright: (c) 2010 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/lib/smtp_mailer.py --- a/rhodecode/lib/smtp_mailer.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/lib/smtp_mailer.py Sat Oct 08 03:00:03 2011 +0200 @@ -6,9 +6,21 @@ Simple smtp mailer used in RhodeCode :created_on: Sep 13, 2010 - :copyright: (c) 2011 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . import logging import smtplib diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/tests/test_concurency.py --- a/rhodecode/tests/test_concurency.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/tests/test_concurency.py Sat Oct 08 03:00:03 2011 +0200 @@ -6,9 +6,21 @@ Test suite for making push/pull operations :created_on: Dec 30, 2010 - :copyright: (c) 2010 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . import os import sys @@ -123,7 +135,7 @@ rm = RepoModel(sa) rm.base_path = '/home/hg' rm.create(form_data, user) - + print 'done' def set_anonymous_access(enable=True): @@ -141,10 +153,10 @@ #============================================================================== # TESTS #============================================================================== -def test_clone_with_credentials(no_errors=False,repo=HG_REPO): +def test_clone_with_credentials(no_errors=False, repo=HG_REPO): cwd = path = jn(TESTS_TMP_PATH, repo) - + try: shutil.rmtree(path, ignore_errors=True) os.makedirs(path) @@ -158,7 +170,7 @@ 'pass':PASS, 'host':HOST, 'cloned_repo':repo, - 'dest':path+_RandomNameSequence().next()} + 'dest':path + _RandomNameSequence().next()} stdout, stderr = Command(cwd).execute('hg clone', clone_url) @@ -173,5 +185,5 @@ for i in range(int(sys.argv[2])): test_clone_with_credentials(repo=sys.argv[1]) - except Exception,e: + except Exception, e: sys.exit('stop on %s' % e) diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/tests/test_hg_operations.py --- a/rhodecode/tests/test_hg_operations.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/tests/test_hg_operations.py Sat Oct 08 03:00:03 2011 +0200 @@ -6,9 +6,21 @@ Test suite for making push/pull operations :created_on: Dec 30, 2010 - :copyright: (c) 2010 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . import os import time diff -r 7d64456775ad -r 2afe9320d5e6 rhodecode/tests/test_libs.py --- a/rhodecode/tests/test_libs.py Sat Oct 08 02:09:42 2011 +0200 +++ b/rhodecode/tests/test_libs.py Sat Oct 08 03:00:03 2011 +0200 @@ -7,9 +7,21 @@ Package for testing various lib/helper functions in rhodecode :created_on: Jun 9, 2011 - :copyright: (c) 2011 by marcink. - :license: LICENSE_NAME, see LICENSE_FILE for more details. + :copyright: (C) 2009-2011 Marcin Kuzminski + :license: GPLv3, see COPYING for more details. """ +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see .