Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Hyrum K Wright
On Tue, Jan 24, 2012 at 5:58 AM, Trent Nelson wrote: > > On Jan 24, 2012, at 12:11 AM, Daniel Shahaf wrote: > >> Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: >>> Fix a memory leak in convert_rangelist by *always* Py_DECREF'ing the object >>> returned by convert_to_swigtype (a SWIG wr

Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Daniel Shahaf
Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: > Fix a memory leak in convert_rangelist by *always* Py_DECREF'ing the object > returned by convert_to_swigtype (a SWIG wrapper around svn_merge_range_t) > once we've established it's not NULL. > > This is required because PyList_Append ta

Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Daniel Shahaf
A few comments on the testsuite part of the patch. First, I intend to test the patch using the attached pastebin script by Trent, in addition to 'make check'. Second: Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: > Index: subversion/bindings/swig/python/tests/mergeinfo.py >

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Philip Martin
Johan Corveleyn writes: > On Mon, Jan 23, 2012 at 4:28 PM, Philip Martin > wrote: >> Is that sufficient? Given three files "foo", "FOO" and "Foo", one in >> wc.db, one on disk and one on the command line, is that the same file? >> Add another "fOO" to the database. It's now ambiguous? > > No,

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Daniel Shahaf
Philip Martin wrote on Tue, Jan 24, 2012 at 13:45:49 +: > Johan Corveleyn writes: > > > On Mon, Jan 23, 2012 at 4:28 PM, Philip Martin > > wrote: > >> Is that sufficient? Given three files "foo", "FOO" and "Foo", one in > >> wc.db, one on disk and one on the command line, is that the same f

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Hyrum K Wright
On Tue, Jan 24, 2012 at 1:54 PM, Daniel Shahaf wrote: > Philip Martin wrote on Tue, Jan 24, 2012 at 13:45:49 +: >> Johan Corveleyn writes: >> >> > On Mon, Jan 23, 2012 at 4:28 PM, Philip Martin >> > wrote: >> >> Is that sufficient?  Given three files "foo", "FOO" and "Foo", one in >> >> wc.d

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Daniel Shahaf
Hyrum K Wright wrote on Tue, Jan 24, 2012 at 13:57:28 +: > On Tue, Jan 24, 2012 at 1:54 PM, Daniel Shahaf wrote: > > Philip Martin wrote on Tue, Jan 24, 2012 at 13:45:49 +: > >> Johan Corveleyn writes: > >> > >> > On Mon, Jan 23, 2012 at 4:28 PM, Philip Martin > >> > wrote: > >> >> Is th

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Johan Corveleyn
On Tue, Jan 24, 2012 at 2:45 PM, Philip Martin wrote: > Johan Corveleyn writes: > >> On Mon, Jan 23, 2012 at 4:28 PM, Philip Martin >> wrote: >>> Is that sufficient?  Given three files "foo", "FOO" and "Foo", one in >>> wc.db, one on disk and one on the command line, is that the same file? >>> A

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Johan Corveleyn
On Tue, Jan 24, 2012 at 3:03 PM, Daniel Shahaf wrote: > Hyrum K Wright wrote on Tue, Jan 24, 2012 at 13:57:28 +: >> On Tue, Jan 24, 2012 at 1:54 PM, Daniel Shahaf wrote: >> > Philip Martin wrote on Tue, Jan 24, 2012 at 13:45:49 +: >> >> Johan Corveleyn writes: >> >> >> >> > On Mon, Jan 2

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Philip Martin
Daniel Shahaf writes: >> Given three files "foo", "FOO" and "Foo", one in >> wc.db, one on disk and one on the command line, is that the same file? >> >> My understanding is that a Windows user expects those to be the same >> file. So "svn st FOO", "svn st foo" and "svn st Foo" all refer to

Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Daniel Shahaf
Daniel Shahaf wrote on Tue, Jan 24, 2012 at 13:36:07 +0200: > Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: > > Fix a memory leak in convert_rangelist by *always* Py_DECREF'ing the object > > returned by convert_to_swigtype (a SWIG wrapper around svn_merge_range_t) > > once we've estab

Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Trent Nelson
On Tue, Jan 24, 2012 at 03:44:04AM -0800, Daniel Shahaf wrote: > Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: > > Index: subversion/bindings/swig/python/tests/mergeinfo.py > > === > > --- subversion/bindings/swig/python/t

Re: [PATCH] Fix memory leak in SWIG Python bindings

2012-01-24 Thread Daniel Shahaf
Trent Nelson wrote on Tue, Jan 24, 2012 at 10:17:24 -0500: > On Tue, Jan 24, 2012 at 03:44:04AM -0800, Daniel Shahaf wrote: > > Trent Nelson wrote on Mon, Jan 23, 2012 at 15:07:20 -0500: > > > Index: subversion/bindings/swig/python/tests/mergeinfo.py > > > ==

Re: [RFC] Server Dictated Configuration

2012-01-24 Thread C. Michael Pilato
On 01/21/2012 09:05 AM, Ivan Zhakov wrote: > On Thu, Jan 19, 2012 at 03:23, Paul Burba wrote: >> Yeah, I've been thinking about this. As you say, the solution for our >> "own" inheritable properties is simple. Since Subversion already >> reserves properties beginning with "svn:" for its own use

Re: [RFC] Server Dictated Configuration

2012-01-24 Thread C. Michael Pilato
On 01/21/2012 09:05 AM, Ivan Zhakov wrote: > On Thu, Jan 19, 2012 at 03:23, Paul Burba wrote: >> Yeah, I've been thinking about this. As you say, the solution for our >> "own" inheritable properties is simple. Since Subversion already >> reserves properties beginning with "svn:" for its own use

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Johan Corveleyn
On Tue, Jan 24, 2012 at 1:18 AM, Johan Corveleyn wrote: [ ... ] > I'd like to note though that #4023 is also potentially an issue for > svn < 1.7 (pre-wcng). At least if you're thinking about > non-commandline usage. As of #3865, one can now also run into this > situation with the commandline cl

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

2012-01-24 Thread Stephen Butler
On Jan 25, 2012, at 1:47 , Johan Corveleyn wrote: > > Just to confirm this point: I've been able to reproduce #4023 (or a > variation thereof) with TortoiseSVN 1.6: > > - Add 'foo' as a versioned file. Commit. > - Delete 'foo' from filesystem (non-svn delete). > - Create new file 'FOO'. > - Rig