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

Re: r20600 broke mailer.py's diff url promises

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-07-25 19:41:55 CEST

C. Michael Pilato wrote:
> Blair Zajac wrote:
>> C. Michael Pilato wrote:
>>> mailer.py's sample configuration file -- and, until r20600, behavior --
>>> gives the following expected behavior for the diff_*_url options:
>>> # Diff URL construction. For the configured diff URL types, the diff
>>> # section (which follows the message header) will include the URL
>>> # relevant to the change type, even if actual diff generation for that
>>> # change type is disabled (per the generate_diffs option).
>>> #
>>> # Available substitution variables are: path, base_path, rev, base_rev
>>> But as of r20600, those substitution variables (path, base_path, rev,
>>> base_rev) no longer work.
>>> I haven't really jumped into a debugging session, but my guess is that
>>> the
>>> substitution is now happening earlier than it was before (in the calls to
>>> cfg.get()), specifically, too early for the above variables to have been
>>> defined.
>>> I'm tracking this regression in issue #2587.
>> So r20600 worked for me because I was using mappings in our production
>> environment, which differed the parameter substitution till later, hence
>> I didn't see the bug.
>> The below patch, which I can apply when people are happy with it, defers
>> the parameter retrieval.
>> I tested this patch with a mailer.conf that uses mapping and one that
>> does not for the diff_*_url values.
> Reviewed the patch. Looks good. Committed in r20854. Will close issue
> #2587 now, and propose 20854 for backport to 1.4.x.

I nominated r20841 as a part of this patch, which has whitespace only changes
for backport. I don't know if 20854 will merge cleanly without this (haven't
tested it) and the whitespace merge may help future merges.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 25 19:42:29 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.