[Pysvnmanager-svn] SF.net SVN: pysvnmanager:[49] trunk
Status: Alpha
Brought to you by:
jiangx
From: <ji...@us...> - 2008-08-29 02:48:01
|
Revision: 49 http://pysvnmanager.svn.sourceforge.net/pysvnmanager/?rev=49&view=rev Author: jiangx Date: 2008-08-29 02:48:06 +0000 (Fri, 29 Aug 2008) Log Message: ----------- (r93) add depends on docutils; chmod 0755 for hooks when repos initialize; Modified Paths: -------------- trunk/pySvnManager.egg-info/requires.txt trunk/pysvnmanager/model/repos.py trunk/setup.py Property Changed: ---------------- trunk/pysvnmanager/i18n/en/LC_MESSAGES/ trunk/pysvnmanager/i18n/zh/LC_MESSAGES/ Modified: trunk/pySvnManager.egg-info/requires.txt =================================================================== --- trunk/pySvnManager.egg-info/requires.txt 2008-08-28 15:58:56 UTC (rev 48) +++ trunk/pySvnManager.egg-info/requires.txt 2008-08-29 02:48:06 UTC (rev 49) @@ -1 +1,2 @@ -Pylons>=0.9.6.2 \ No newline at end of file +Pylons>=0.9.6.2 +docutils \ No newline at end of file Property changes on: trunk/pysvnmanager/i18n/en/LC_MESSAGES ___________________________________________________________________ Deleted: svn:ignore - *.mo Property changes on: trunk/pysvnmanager/i18n/zh/LC_MESSAGES ___________________________________________________________________ Deleted: svn:ignore - *.mo Modified: trunk/pysvnmanager/model/repos.py =================================================================== --- trunk/pysvnmanager/model/repos.py 2008-08-28 15:58:56 UTC (rev 48) +++ trunk/pysvnmanager/model/repos.py 2008-08-29 02:48:06 UTC (rev 49) @@ -88,13 +88,24 @@ # copy hook-scripts from matched hooks templates directory. src = hooks.init.svn_hooks_init_base + '/' + hooks.init.svn_hooks_init_dict[matched] + src = os.path.abspath(src) dest = "%(root)s/%(entry)s/hooks" % { "root": self.repos_root, "entry": repos_name} + dest = os.path.abspath(dest) - log.debug('Now copy hooks from \n\t%s to \n\t%s' % (src, dest)) import shutil - shutil.rmtree(dest) - shutil.copytree(src, dest, symlinks=True) - + if os.path.exists(dest): + assert os.path.basename(dest) == 'hooks' + shutil.rmtree(dest) + elif not os.path.exists(os.path.basename(dest)): + raise Exception("Destination repository '%s' not exist!" % os.path.basename(dest)) + for root, dirs, files in os.walk(src): + targetdir = root.replace(src, dest, 1) + os.mkdir(targetdir) + for name in files: + shutil.copy(os.path.join(root, name), os.path.join(targetdir, name)) + os.chmod(os.path.join(targetdir, name), 0755) + if '.svn' in dirs: + dirs.remove('.svn') # don't visit SVN directories def svnversion(self): cmd = 'LC_ALL=C svn --version' Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2008-08-28 15:58:56 UTC (rev 48) +++ trunk/setup.py 2008-08-29 02:48:06 UTC (rev 49) @@ -12,8 +12,8 @@ author='Jiang Xin', author_email='jia...@os...', url='https://sourceforge.net/projects/pysvnmanager', - #install_requires=["Pylons>=0.9.6.2", "python-ldap"], - install_requires=["Pylons>=0.9.6.2"], + #install_requires=["Pylons>=0.9.6.2", "docutils", "python-ldap"], + install_requires=["Pylons>=0.9.6.2", "docutils"], packages=find_packages(exclude=['ez_setup']), include_package_data=True, test_suite='nose.collector', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |