Re: How do I propose changes to Subversion repos?

2023-12-12 Thread Graham Leggett via users
On 07 Dec 2023, at 14:38, Jason Yundt  wrote:

> Here’s the questions that I still have:
> 
> • With Git, there’s multiple different ways of sending your changes
> upstream (pull requests, git-request-pull and git-send-email). Are there
> multiple ways of doing it with Subversion or do you always just send
> emails with patches attached?

Ultimately, the common thing in all of these different version control systems 
is the patch file, the file that says what lines are being added and what lines 
are being taken away.

As long as you get the patch file cleanly to your target audience in some form, 
you’re done. That could be by email, posting to a mailing list, etc.

The idea of a pull request is when someone puts a user experience around 
handling the patch file. Github is probably the best example of this, thought 
the idea has been copied by everyone else. The Apache SVN repos are all 
mirrored at Github, meaning that you could use the Github pull request workflow 
to propose changes to SVN repos. Here is an example of a pull request made to 
the subversion project:

https://github.com/apache/subversion/pull/23

> • I followed my own instructions to create an example patch for
> , and I attached it
> to this email. Does it look like I created the patch correctly?
> 
> [1]: 
> 

Example is perfect.

Regards,
Graham
—



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

2023-11-27 Thread Graham Leggett via users
On 27 Nov 2023, at 07:03, Lorenz via users  wrote:

> try svnmucc put -- - url

This was the secret, it worked thank you!

Regards,
Graham
—



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

2023-11-27 Thread Graham Leggett via users
On 27 Nov 2023, at 06:47, Daniel Sahlberg  wrote:

> 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.

The "svnmucc put db.sql file:///var/lib/svn/db/db.sql” worked.

The “— -“ also worked, I think this is a quirk of apr-util:

https://apr.apache.org/docs/apr/1.7/group__apr__getopt.html#ga80d6ff2213da4e25406b3f179fa13989

Ideally the return message of APR_BADARG needs to be updated to hint that a “—“ 
might be needed.

Regards,
Graham
—



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
—



Is there a write opposite to "svn cat"?

2023-11-25 Thread Graham Leggett via users
Hi all,

The “svn cat” command will read a file from a (in my case local file based) 
repository to stdout. Is there an equivalent to write into a repository from 
the svn command line?

First prize from stdin, second prize from a local file on disk.

“svn import” comes close, but cannot be run twice, as the second time the 
command is run you get the following error:

svn: E150002: Path 'file:///var/lib/svn/postgres/database.sql' already exists

I know that it is possible to autocommit via WebDAV, but this is a local repo.

Regards,
Graham
—



Re: How much is too much data in an svn repository?

2022-09-23 Thread Graham Leggett via users
On 23 Sep 2022, at 13:42, Mark Phippard  wrote:

> A big negative of Subversion repositories is you cannot ever delete
> anything. Do you really need to keep all these binaries forever?

In our regulated world that is an important feature.

Once the repos get too big we start new ones. In the meantime, there is no such 
thing as “we did fraud^H^H^H^H^H a delete to make space”.

Regards,
Graham
—



Re: How much is too much data in an svn repository?

2022-09-23 Thread Graham Leggett via users
On 22 Sep 2022, at 21:59, Sean McBride  wrote:

> Our svn repo is about 110 GB for a full checkout. Larger on the server of 
> course, with all history, weighting about 142 GB.
> 
> There haven't been any performance issues, it's working great.
> 
> But now some users are interested in committing an additional 200 GB of 
> mostly large binary files.
> 
> I worry about it becoming "too big".  At what point does that happen?  
> Terabytes?  Petabytes?  100s of GB?

From experience it becomes too big when the underlying disk gets full. As long 
as your underlying disks can handle it, it works fine.

I use SVN for versioned incremental backups of files in the 0.5GB range. I’ve 
seen reports of others checking in multi GB files as backups with no trouble.

Best thing to do is to physically try it. Make a copy of your repo, then try 
check things into it, and see where your issues are.

Regards,
Graham
—



Re: svn client - how do I force IPv6?

2022-09-19 Thread Graham Leggett via users
On 19 Sep 2022, at 13:36, Mark Phippard  wrote:

> Daniel gave the answer I was typing. Here is info on enabling IPv6 for your 
> JVM:
> 
> https://stackoverflow.com/questions/18697091/ipv6-support-in-java 
> 

Alas this is the info for the JVM and does not work in this case. Most Java 
communication libraries ignore the JVM parameters for their own 
implementations. This is true of SVNKit, which reports that it relies 
completely on the configuration of the native svn client.

https://svnkit.com/documentation.html

"Native Subversion configuration files are used by default.”

Regards,
Graham
—



Re: svn client - how do I force IPv6?

2022-09-19 Thread Graham Leggett via users
On 19 Sep 2022, at 13:15, Daniel Sahlberg  wrote:

> SVNKit is a Java implementation of Subversion and doesn't share any code with 
> Apache Subversion. Even if SVNKit honors the configuration in ~/.subversion, 
> there are no guarantees that a particular option used by Apache Subversion 
> works the same way with SVNKit. Thus I would suggest that you ask the same 
> question in the SVNKit forums.

That had already been done:

https://support.tmatesoft.com/t/force-ipv6-connections-in-svnkit-how/2898

> I can't recollect seeing any options for IPv6 (as you have also found out). I 
> would assume Apache Subversion is using OS defaults when it comes to trying 
> IPv4 or IPv6 first if a certain server has both addresses. When it comes to 
> SVNKit I can't guess how Java handles IPv4 och IPv6 connections.

Is the IPv6 behaviour of the svn client (not the SVNKit client) documented 
anywhere? The svn book returns no hits for ipv6, the man page redirects you to 
svn help [subcommand], which doesn’t appear to mention common arguments.

SVNKit claims to be bug-for-bug compatible with native svn, but without any 
concrete definition of the native client behaviour the behaviour diverges.

Regards,
Graham
—



svn client - how do I force IPv6?

2022-09-19 Thread Graham Leggett via users
Hi all,

What setting option under the ~/.subversion directory will force the use of 
IPv6 on outbound connections?

The backstory is that I have some SVNKit code that is stubbornly insisting on 
using IPv4 and failing. The SVNKit docs say it gets its config from the native 
~/.subversion directory, but I can find no mention of IPv6 and the native svn 
client config. I am specifically talking about an svn client accessing an IPv6 
server over https, I am not using svnserve.

Regards,
Graham
—