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

Re: hot-backup.py patch

From: Peter Davis <peter_at_pdavis.cx>
Date: 2002-11-20 21:26:54 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 20 November 2002 08:48, Michael Price wrote:
> +if os.path.isdir(backup_subdir):
> + print "Backup of revision %s already exists." % backup_subdir,
> + sys.exit(0)

Instead of only checking for a directory, why not check that the target exists
at all? I wouldn't want to overwrite any files, either.

- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE92/AOhDAgUT1yirARAgyjAJ9tW5fcL+tVR6EWTBqK8SwpLglq+gCfU1mD
4dhrR5vOPHBlWr1ovRsMs2s=
=TdNw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 20 21:27:37 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.