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

Re: svn commit: r37194 - in trunk/subversion: libsvn_client tests/cmdline tests/cmdline/svntest

From: Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA_at_GMail.Com>
Date: Mon, 13 Apr 2009 19:31:39 +0200

2009-04-13 12:56:03 Greg Stein napisaƂ(a):
> On Mon, Apr 13, 2009 at 05:18, Arfrever Frehtes Taifersar Arahesis
> <Arfrever.FTA_at_gmail.com> wrote:
> >...
> > +++ trunk/subversion/libsvn_client/patch.c Sun Apr 12 20:18:08 2009 (r37194)
> >...
> > @@ -1654,31 +1657,51 @@ extract_svnpatch(const char *original_pa
> >
> > SVN_ERR(svn_io_file_open(&original_patch_file, original_patch_path,
> > APR_READ, APR_OS_DEFAULT, pool));
> > - original_patch_stream = svn_stream_from_aprfile2(original_patch_file,
> > - FALSE, pool);
> > + original_patch_stringbuf = svn_stringbuf_create_ensure(1024, pool);
> > + SVN_ERR(svn_stringbuf_from_aprfile(&original_patch_stringbuf,
> > + original_patch_file, pool));
>
> Woah. Can't do this. This reads the whole patch file into memory. The
> file isn't going to go away, so just reopen the file.

Fixed in r37207.

-- 
Arfrever Frehtes Taifersar Arahesis

Received on 2009-04-14 00:07:46 CEST

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.