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