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

Re: [SVN-4677] svn up fails after a file is replaced by a directory

From: Orivej Desh <orivej_at_gmx.fr>
Date: Mon, 1 May 2017 18:48:12 +0000

Stefan, could you please consider this bug report?

* Johan Corveleyn <jcorvel_at_gmail.com> [2017-04-07]
> On Thu, Apr 6, 2017 at 6:10 AM, Orivej Desh <orivej_at_gmx.fr> wrote:
> > I filed a bug at https://issues.apache.org/jira/browse/SVN-4677
> > Since the mailing list seems more active, I copy it here.
> >
> > * * *
> >
> > svn up fails after a file is added, moved, deleted, replaced by a
> > directory, and a file in the directory is deleted
> >
> >
> > This bug was introduced in r1586953 [1], is present in all releases
> > since 1.9.0, and can be fixed by reverting that commit. The following
> > script reproduces it:
> >
> > rm -rf repo repo1 repo2
> >
> > svnadmin create repo
> > svn co "file://$(pwd)/repo" repo1
> >
> > cd repo1
> > mkdir a
> > svn add a
> > svn commit -m 1
> > svn up
> >
> > echo fa > a/fa
> > svn add a/fa
> > svn commit -m 2
> > svn up
> >
> > svn mv a b
> > svn commit -m 3
> > svn up
> >
> > svn rm b/fa
> > svn commit -m 4
> > svn up
> >
> > mkdir b/fa/
> > touch b/fa/fb
> > svn add b/fa
> > svn commit -m 5
> > svn up
> >
> > svn rm b/fa/fb
> > svn commit -m 6
> > svn up
> >
> > cd ..
> > svn co "file://$(pwd)/repo" repo2 -r5
> > cd repo2
> > svn up
> >
> > svn up fails with
> >
> > Updating '.':
> > svn: E160016: Failure opening '/b/fa/fb'
> > svn: E160016: '/b/fa' is not a directory in filesystem '1d2dc934-16b4-452c-a607-a6080764124e'
> >
> > Additionally, when reporting `Failure opening '/b/fa/fb'`, it would
> > have been quite useful for subversion to tell in which revision
> > `'/b/fa' is not a directory`.
> >
> > [1] http://svn.apache.org/viewvc?view=revision&revision=1586953
>
> Thanks for reporting this, with clear repro steps and even pinpointing
> the revision :-).
>
> I think Stefan Fuhrman knows the most about that particular revision,
> so I'm guessing he can evaluate this best. Stefan?
Received on 2017-05-01 20:48:26 CEST

This is an archived mail posted to the Subversion Dev mailing list.