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

Re: Missing checks for error diagnostics

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 02 Sep 2008 20:01:42 +0100

On Fri, 2008-08-29 at 09:57 +0200, Jens Seidel wrote:
> On Fri, Aug 29, 2008 at 12:06:47AM +0100, Julian Foad wrote:
> > Jens Seidel wrote:
> > > today I had a strange problem and I assumed an error in Subversion 1.5.2.
> > >
> > > I tried to add a directory to my repository which I copied from another
> > > location. svn complained that the directory is already contained in the
> > > repository but it clearly isn't and svn status displays "?" for this
> > > directory.
> >
> > Jens,
> >
> > I understand roughly what you are talking about, but it would be very
> > much easier to understand and gauge the severity of the problem if you
> > would show an exact transcript of your input and Subversion's output.
>
> Sorry, I was very happy that I don't have to dig into my repository to
> try many hours to extract a recipy why it fails because the reason is so
> simple. That's why I assumed a transcript is not necessary.
> Nevertheless here is it (using 1.5.2):

Jens,

Thank you. This reproduction recipe makes it very clear what the problem
is and how to reproduce it.

I hope somebody will think of a solution and volunteer to fix it. (I
don't suppose you know anybody who could do it, do you? The rest of us
would be available to help, of course.)

- Julian

> $ svnadmin create repos
> $ svnadmin create repos2
> $ R=file://$(pwd)/repos
> $ R2=file://$(pwd)/repos2
>
> Create a directory wc2/dir/ with a .svn/ subdirectory:
>
> $ svn co $R2 wc2
> Checked out revision 0.
> $ svn mkdir wc2/dir
> A wc2/dir
> $ touch wc2/dir/file
> $ svn add wc2/dir/file
> A wc2/dir/file
> $ svn ci -m"Created dir/ with a file" wc2
> Adding wc2/dir
> Adding wc2/dir/file
> Transmitting file data .
> Committed revision 1.
>
> Try to add the directory (but you do not remember about the old
> repository and the contained (hidden) .svn/):
>
> $ svn co $R wc
> Checked out revision 0.
> $ cp -r wc2/dir wc
> $ svn add wc/dir
> svn: warning: 'wc/dir' is already under version control
>
>
> Now you could spend hours searching for a problem, inspecting the log,
> dumping and reloading the repository, calling svnadmin verify, ...
>
>
> $ svn info wc/dir
> Path: wc/dir
> URL: file:///tmp/svn/repos2/dir
> Repository Root: file:///tmp/svn/repos2
> Revision: 1
> Node Kind: directory
> Schedule: normal
> Last Changed Author: jens
> Last Changed Rev: 1
> Last Changed Date: 2008-08-29 09:54:31 +0200 (Fri, 29 Aug 2008)
>
> Ths doesn't match as it still refers to the old repository :-)
>
> > > The reason is indeed simple but could nevertheless be hard to find:
> > > The directory I tried to add contained a subdirectory .svn/ from another
> > > repository.
> > >
> > > Could Subversion stop using bogus .svn data or at least print a proper
> > > diagnostics?
>
> Jens

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-02 21:02:05 CEST

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