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

Re: Small patch for svnmerge.py

From: Kevin P. Fleming <kpfleming_at_digium.com>
Date: 2006-01-25 15:53:59 CET

Daniel Rall wrote:
> On Tue, 24 Jan 2006, Kevin P. Fleming wrote:
>
>
>>Fixes silly double-execution of format_merge_props that breaks
>>'svnmerge.py block' operation.
>>
>>Index: svnmerge.py
>>===================================================================
>>--- svnmerge.py (revision 18211)
>>+++ svnmerge.py (working copy)
>>@@ -404,7 +404,7 @@
>> del props[head_path]
>> props = format_merge_props(props)
>> if props:
>>- _run_propset(dir, opts["block_prop"], format_merge_props(props))
>>+ _run_propset(dir, opts["block_prop"], props)
>> else:
>> svn_command('propdel "%s" "%s"' % (opts["block_prop"], dir))
>
>
> Looks good. No other side effects from turning off the double-formatting?

If you leave the double call in place, the program aborts with a Python
error, since format_merge_props is being passed a string the second
time, instead of the proper argument type.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 25 15:54:53 2006

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.