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

Export behaving badly

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-10-17 02:30:03 CEST

So i'm converting over some documentation update scripts from gcc.

They do the following:

Export a bunch of doc files from repo
build docs
place them somewhere

export, unfortunately, behaves differently than checkout. If you do

svn export svn://gcc.gnu.org/svn/trunk/gcc/doc/install.texi gcc

It creates a file named "gcc" in the current directory, containing the
contents of install.texi

Fair enough, though different than checkout, which if you could checkout
a single file, presumably would have put it in gcc

So i create a dir named gcc

-bash-3.00$ mkdir gcc
-bash-3.00$ svn export file:///svn/gcc/trunk/gcc/doc/install.texi gcc
svn: Can't move 'gcc.2.tmp' to 'gcc': Is a directory

I *know* it's a directory.
That's why i gave it to you. To put the file in.

IMHO, export's extra argument should behave exactly like the one to
checkout, and effectively copy the file into that path.

The current behavior is just not sensible.

We had a discussion about whether to create the empty paths that are in
the URL or not (like CVS), and the consensus seemed to be no

But nobody disagreed that what happens now doesn't match the checkout
behavior, and probably should.

Anybody disagree?
--Dan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 17 02:32:33 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.