On Thu, 23 Jul 2020 at 00:59, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> 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?
AIUI an svnmucc script only succeeds if all the individual commands succeed.
To do that with single commands would require reversion and/or retries.
If the reason for an svn client failure is a network or server issue,
it's going to be very difficult to tidy up.
> > 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:
> - Get HEAD's value as an integer
> - Check file existence/inexistence in that revision
> - Run 'svnmucc -r'
> 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 12:30:48 CEST