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

Re: Getting one file out of a repository

From: David Kramer <david_at_thekramers.net>
Date: 2005-01-03 19:24:04 CET

On Mon, 3 Jan 2005, Max Bowsher wrote:
> David Kramer wrote:
> > $ svn export svn://localhost/agilerules/devel/trunk/todo.txt
> > svn: Cannot replace a directory from within
> >
> >
> > I thought of the ultra-ugly hack of using "svn cat bla > myfile", but I
> > would rather not do that long-term. Likewise, since the lib directory has
> > large libraries in it, I would rather not check out all of lib into a
> > temporary working copy and copy what I need from that.
> I don't find it ultra-ugly, just mildly inconsistent.

I call it ultra-ugly because catting binary files seems dangerous to me,
as some environments/platforms have EOF markers, etc. I'm sure it will
work in my environment. At the very least it is counterintuitive to use
cat for binary files AND for export to not work on a single file.

> However, export should really be able to work in the single file case too.
> Would you like to file an issue (or maybe even write a patch), so we
> remember to fix this?

It looks like issue 1708 (and 823), covers it (I used a better regexp to
find it than I tried before), but it is a year old, with nobody working on
it. I don't appear to have rights to either add comments or vote for it,
but I could be doing something wrong (I just set up my account now, and
just asked to be an Observer on the subversion project).

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 3 19:27:01 2005

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