Read the contents of a file from a remote svn repository without checking it locally

(Thanks in advance, SOers!)

The problem I'm trying to solve

Is there any way (for example, in bash or in ruby) to read the contents of a file on a remote svn repo without checking it locally and not reading it locally, given that I have a path to it (for example, "svn + ssh: // svn.something / folder / morefolder / something.txt ")

What have I tried or thought about trying

As an option, svnthere is no analogue for something like moreor less. If you look at the list of available options for the svn command, the closest I can think of to achieve this is something like a line

  • Using svn praise [svn file path]and then
  • Parse it (in my program or in bash) to extract what I want from it.

Additional note

I googled and looked around StackOverflow, and it seems like no one else (or at least I haven't met anyone yet) was discussing this / usecase issue. I have a legitimate reason for this particular need, but I really wonder if I am missing something in my thought process.

Please let me know if I do not have enough information in this matter. Thanks again!

+3
source share
1 answer

Have you tried svn cat? I believe that these are the features you are looking for.

Here's the documentation http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.cat.html

This command conveniently outputs the contents of the remote repository URL to standard output.

+9
source

All Articles