[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-11-12 14:27:46 CET

Noel Yap <yap_noel@yahoo.com> writes:

> --- kbrannen@gte.net wrote:
> > 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. :-)
>
> As a convenience, "svn cat" should also work when
> specifying working directory files. (It'll save on
> typing :-)
>
> Ben, does RA->get_file() work this way already?

No, because it's part of the the RA (Repository Access) vtable. By
definition, it only gets a file from a repository. To get a file's
local contents, just apr_file_open(). Of course I can think of at
least two plausible behaviors for 'svn cat localfile': either 1. cat
the hidden text-base of localfile, or 2. just convert localfile into a
url, and still get some version of the file from the repository. I'm
not sure what you were thinking of.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 12 14:29:48 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.