[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn commit: rev 1694 - trunk/subversion/tests/clients/cmdline/svntest

From: Sander Striker <striker_at_apache.org>
Date: 2002-04-13 11:25:29 CEST

Hi,

Apparently shutil.copytree() doesn't copy permissions
without applying umask. I don't know if there is an
equivalent of 'cp -a' in shutil, so I choose the easy
way out.

Without this, every test over dav was failing as soon
as something needed to be written. And, as I don't
want to adjust my umask settings... :)

Sander

> Author: striker
> Date: 2002-04-13 09:02 GMT
> New Revision: 1694
>
> Modified:
> trunk/subversion/tests/clients/cmdline/svntest/actions.py
> Log:
> * subversion/tests/clients/cmdline/svntest/actions.py
>
> (guarantee_greek_repository): Fix a permission problem.
>
>
> Modified: trunk/subversion/tests/clients/cmdline/svntest/actions.py
> ==============================================================================
> --- trunk/subversion/tests/clients/cmdline/svntest/actions.py (original)
> +++ trunk/subversion/tests/clients/cmdline/svntest/actions.py Sat Apr 13 04:02:54 2002
> @@ -90,6 +90,10 @@
> if not os.path.exists(os.path.dirname(path)):
> os.makedirs(os.path.dirname(path))
> shutil.copytree(main.pristine_dir, path)
> +
> + # make the repos world-writeable, for mod_dav_svn's sake.
> + os.system('chmod -R a+rw ' + path)
> +
> if os.path.exists(main.current_repo_dir):
> os.unlink(main.current_repo_dir)
> os.symlink(os.path.basename(path), main.current_repo_dir)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 13 11:19:15 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.