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

Re: [BUG]: "svn: Two top-level reports with no target"

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-10-04 23:33:00 CEST

Here's a simpler reproduction recipe. Within any existing svn working
directory:

  svn mkdir foo
  cd foo
  svn up

So, the bug is that updates from within a locally-added directory don't
work. svn_wc_crawl_revisions() generates a report which reporter.c
doesn't like. The API documentation in svn_ra.h says you can only make
two report calls on the top-level path "if the target of the operation
is deleted or switched relative to the anchor," which isn't true in this
case.

Two questions, then:

  (1) What is the desired behavior here? If you were to "svn up foo"
from the parent, you'd either get a no-op update or an obstructed
update, depending on whether foo exists in the repository's head.

  (2) Based on the answer to (1) above, what's the appropriate code
change? We could make the client notice that the current directory is
locally added and do nothing, or error out. We could make reporter.c
tolerate this kind of report, but I think that would result in a
locally-added directory with updated repository contents, which would be
bizarre and would probably fail later on.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 4 23:33:15 2004

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.