[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnmucc: new commands: add and modify/update

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Wed, 22 Jul 2020 23:59:14 +0000

sebb wrote on Wed, 22 Jul 2020 22:44 +0100:
> The SVN put command can add a new file or update an existing one.
>
> As part of a batch update it may be necessary to ensure that a
> particular file will be created and not updated - or vice versa.
> That is currently not at all easy to do, which is a shame as svnmucc
> is otherwise very useful for writing atomic updates that are not
> possible with the svn client.

What can svnmucc(1) do that svn(1) can't?

> Would there be any support for extending svnmucc to add these operations?
> Either as options to put, or as separate commands.

The standard solutions for your situation are:

1.
- Get HEAD's value as an integer
- Check file existence/inexistence in that revision
- Run 'svnmucc -r'

2.
svn co --depth=empty $URL wc
svn up --set-depth=infinity wc/foo

# (as posted in https://mail-archives.apache.org/mod_mbox/subversion-users/202007.mbox/%3C20200712142604.128f80eb%40tarpaulin.shahaf.local2%3E)

In what ways do they fall short?
Received on 2020-07-23 01:59:34 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.