You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Szakmeister <jo...@szakmeister.net> on 2004/07/08 23:59:06 UTC

[PATCH] Re: bug in svn export

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.

-John

-----------------------------------
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
  WORKING.