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

Re: [PATCH] Re: ra_svn deadlock

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-12-14 19:06:32 CET

Philip Martin <philip@codematters.co.uk> writes:

> + dump_in, dump_out, dump_err = os.popen3(svnadmin_binary + " dump " + src_path)
> + load_in, load_out, load_err = os.popen3(svnadmin_binary + " load " + dst_path)
> +
> + while 1:
> + data = dump_out.read(1024) # Size picked at random
> + if data == "":
> + break
> + load_in.write(data)
> + load_in.close() # Tell load we are done? Seems to work.

Well, I guess I should close all six files :)

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 14 19:07:22 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.