Re: Is there a write opposite to "svn cat"?

2023-11-26 Thread Lorenz via users
try svnmucc put -- - url
-- 

Lorenz


Graham Leggett via users wrote:

>On 25 Nov 2023, at 13:40, Pavel Lyalyakin  
>wrote:
>
>> `svnmucc put` perhaps?
>> https://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html
>
>From reading the manual it looks perfect, but I’m having no luck:
>
>[root@seawitch postgres]# cat db.sql | svnmucc put - 
>file:///var/lib/svn/db/db.sql
>svnmucc: invalid option: 
>Type 'svnmucc --help' for usage.
>
>Alas the error message mentions an invalid option, but doesn’t say which 
>option, or why it is invalid.
>
>Regards,
>Graham
>—



Re: Is there a write opposite to "svn cat"?

2023-11-26 Thread Daniel Sahlberg
Den sön 26 nov. 2023 kl 22:51 skrev Graham Leggett via users <
users@subversion.apache.org>:

> On 25 Nov 2023, at 13:40, Pavel Lyalyakin 
> wrote:
>
> `svnmucc put` perhaps?
> https://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html
>
>
> From reading the manual it looks perfect, but I’m having no luck:
>
> [root@seawitch postgres]# cat db.sql | svnmucc put -
> file:///var/lib/svn/db/db.sql
>
> svnmucc: invalid option:
>
> Type 'svnmucc --help' for usage.
>
> Alas the error message mentions an invalid option, but doesn’t say which
> option, or why it is invalid.
>

The documentation say:
[[[
  put SRC-FILE URL   : add or modify file URL with contents copied from
   SRC-FILE (use "-" to read from standard input)
]]]

So as far as I'm reading the documentation, the command you are using
should be supported. I would say this is a bug, either in the argument
handling or in the documentation.

Can you instead try:
$ svnmucc put db.sql file:///var/lib/svn/db/db.sql

I will bring this discussion to the d...@subversion.apache.org to figure out
if we need to change the documentation or if we can fix the code.

Kind regards,
Daniel


Re: Is there a write opposite to "svn cat"?

2023-11-26 Thread Graham Leggett via users
On 25 Nov 2023, at 13:40, Pavel Lyalyakin  wrote:

> `svnmucc put` perhaps?
> https://svnbook.red-bean.com/en/1.8/svn.ref.svnmucc.re.html

From reading the manual it looks perfect, but I’m having no luck:

[root@seawitch postgres]# cat db.sql | svnmucc put - 
file:///var/lib/svn/db/db.sql
svnmucc: invalid option: 
Type 'svnmucc --help' for usage.

Alas the error message mentions an invalid option, but doesn’t say which 
option, or why it is invalid.

Regards,
Graham
—



Subversion behind apache 2.4 proxy - Connection refused

2023-11-26 Thread Gunnar Grim

Hi!

I have subversion running in a Docker container and everything works 
fine if I connect directly to it, but I really need to run subversion 
behind an Apache 2.4 proxy. For now I'm not using https, just trying to 
get it to work with as simple setup as possible.


I have tried to use the FAQ instructions, 
https://subversion.apache.org/faq.html#reverseproxy, but they are 
written for an older Apache version so I have tried to modify them for 2.4.


Browsing the repos with Firefox works fine but it fails with the svn 
client and SmartSVN:



svn info http://localhost/svn/test/svn-test-project
svn: E170013: Unable to connect to a repository at URL 
'http://localhost/svn/test/svn-test-project'

svn: E000111: Error running context: Connection refused

This is my proxy configuration:

   ProxyRequests Off
   ProxyVia on

   
   Require all granted
   

   ProxyPass /svn/ http://localhost:7280/svn/
   
 ProxyPassReverse http://localhost:7280/svn/
 CHECKOUT MKCOL MOVE COPY DELETE LOCK UNLOCK MERGE>

 Require all granted
 
 RewriteCond %{HTTP:Destination} .+/(svn/.*$)
 RewriteRule ^/svn/.* - [E=MyDestination:http://localhost:7280/%1,PT]
 RequestHeader set Destination %{MyDestination}e env=MyDestination



When I use the browser all accesses are logged but with the svn client 
nothing is logged to the access- or error logs, even with log level debug.


Hope someone can see what is wrong with my configuration.

TIA,
Gunnar