2

I would like to get access to file content from SVN. It's quite easy when the path is in local disc like C:\folder...\ then I can use function get-content -path $path.

However, when my source path is SVN URL then I can't do it. Is there any simple way to do it?

Thanks in advance.

1 Answer 1

2

The command you look for is svn cat. You can't use Get-Content PowerShell cmdlet to access remote URLs.

Sign up to request clarification or add additional context in comments.

2 Comments

You're correct about Get-Content but there is Invoke-WebRequest which can pull content down from a URL.
@alroc you could also use telnet client to connect to svn server and fetch the data. Or write a custom client. But why would one bother with that when there is a command line svn.exe client that was developed for these tasks? Sounds like redeveloping the bicycle to me. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.