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

Re: [PATCH] Don't repeatedly notify the same warning

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Tue, 30 Aug 2011 17:11:24 +0300

C. Michael Pilato wrote on Tue, Aug 30, 2011 at 10:01:26 -0400:
> On 08/28/2011 09:08 AM, Daniel Shahaf wrote:
> > [[[
> > Make 'svnadmin dump' print the following warning:
> >
> > WARNING 0x0001: Mergeinfo referencing revision(s) prior to the
> > oldest dumped revision (4). Loading this dump may result in invalid
> > mergeinfo.
> >
> > only once per dump operation, rather once per affected node. The
> > repetition is deemed more noisy than useful. (There is already
> > a warning at the end pointing the existence of warnings throughout
> > the dump.)
> >
> > * subversion/libsvn_repos/dump.c:
> > (TBD):
> > Store the 'saw it' bit, not per-revision (in the edit baton) but per
> > dump operation (in stack storage pointed to by the edit baton).
> > (dump_node):
> > Check the bit before generating the notification/warning.
> > ]]]
>
> Would it make more sense to just replace the warning at the end with a
> single instance of each of the various mid-stream warnings? Or are all such
> warnings not quite as redundant as this one?

But then people have to finish the dump (successfully! ie, without
hitting any corruption or other error partway through) before they see
that "FYI, the data you've just dumped isn't self-contained" warning.

Reporting error conditions as early as possible seems preferable.
Received on 2011-08-30 16:12:17 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.