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:
- 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 01:59:34 CEST