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

Re: [PATCH] issue #3641: svnsync fails to mirror certain dir replaces

From: Tino Schwarze <subversion.lists_at_tisc.de>
Date: Mon, 20 Sep 2010 12:59:46 +0200

Ping!

Has anybody reviewed the patch?

Too late for 1.6.13, I suppose?

Thanks,

Tino.

On Fri, Jul 09, 2010 at 12:57:16AM +0300, Daniel Shahaf wrote:
> Daniel Shahaf wrote on Tue, 22 Jun 2010 at 20:50 -0000:
> > http://subversion.tigris.org/issues/show_bug.cgi?id=3641
> >
> > Briefly, the issue is that when svnsync encounters the following history:
> > ------------------------------------------------------------------------
> > r5 | pm | 2010-05-18 17:53:46 +0100 (Tue, 18 May 2010)
> > Changed paths:
> > A /H (from /A:4)
> > R /H/B (from /X:4)
> > ------------------------------------------------------------------------
> > r3 | pm | 2010-05-18 17:53:46 +0100 (Tue, 18 May 2010)
> > Changed paths:
> > A /A/B/C
> > ------------------------------------------------------------------------
> > it looks for /H/B/C in the sync source when trying to replay r5.
> >
> > I've attached a patch (with log msg) that seems to have some positive
> > effects: it causes the sync to pass (and properly add children of /X as
> > children of /H/B).
> >
>
> r962377 and r962378. I've double-checked the authz aspects of the logic,
> but nevertheless I'll still welcome a review on the two points detailed
> below.
>
> :-),
>
> Daniel
>
> > I'm asking for review for two reasons:
> >
> > * authz. The whole function is authz-sensitive --- its goal is to
> > represent a copy as an add. I think the patch is okay from this
> > angle, but a second pair of eyes wouldn't hurt.
> >
> > * assertions. The patch asserts that svn_fs_path_change2_t->copyfrom_known
> > is TRUE. However, the FS API used --- svn_fs_paths_changed2() ---
> > does not guarantee that copyfrom_known will in fact be TRUE, and
> > I haven't found a different API that does promise to provide the
> > copyfrom information. (I think the patch only needs this information
> > for directory replaces.)
> >
> > Testing, analysis, reviews are welcome.
> >
> > Daniel

-- 
"What we nourish flourishes." - "Was wir nähren erblüht."
www.tisc.de
Received on 2010-09-20 13:00:38 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.