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

Re: svn cat (was: Re: svn up -p)

From: <kbrannen_at_gte.net>
Date: 2002-11-12 02:07:32 CET

> On Wed, 2002-11-06 at 14:59, Branko Čibej wrote:
>
>>"cat" would fetch a file and pipe it to the standard output.

I've tried to follow this thread to see where it would go, because I find the
feature highly useful and very missing. I'm not sure what the final outcome
was (the thread seems to have died off), but is anyone working on it? If not,
I think I might like to try, with a few pointers on direction. :-)

For the moment, let's assume it's called "svn cat"; the real name can be
worked out. If we do:

svn cat REPOS/file

then the file should be printed to STDOUT. I think it's also reasonable to
expect "-r rev" might appear in there too. :-)

For a first pass, I'd be tempted to make it return nothing if you hand it a
directory, except maybe a message like "can't cat a directory" to STDERR, and
exit with 1. Something more intelligent can be done, but for the moment, I
really don't care to get into that "mess" and would like to avoid the issue.

This appears to be issue #399.

So, is the above a reasonable approach and thing to do? Is anyone else
already working on this?

Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 02:05:19 2002

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.