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

[PATCH] Re: bug in svn export

From: John Szakmeister <john_at_szakmeister.net>
Date: 2004-07-09 01:59:06 CEST

On Wednesday 07 July 2004 09:31, Richard Lewis wrote:
> Hi, there seems to be a bug in svn export -rBASE when the working copy
> to be exported contains a directory and a file within that directory
> that have been `svn add'ed but not committed. The attached bash script
> repreoduces this.

Thanks for the reproduction script!

Yeah, the copy_versioned_files() function isn't correctly filtering
versioned files and directories. It's simply parsing all of the entries,
some of which can be partial entries for new files being added. The
following patch seems to fix the problem, although I'm not sure it's
entirely correct. Perhaps one of the other developers can take a look at
this. I've cc'd the dev list in hopes that someone else can take a quick
look at this patch.


Only export versioned files when the BASE revision is specified.

* subversion/libsvn_client/export.c
  (copy_versioned_files): Ensure that the file or directory has been
  committed before exporting when the revision is something other than

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Jul 9 02:00:57 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.