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

Re: Tree conflict resolution considered harmful

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 31 Aug 2018 11:44:34 +0200

On Fri, Aug 31, 2018 at 11:06:07AM +0200, Dag-Erling Smørgrav wrote:
> Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:
> > You probably know the following, but for the list's benefit I'll say it:
> > awk(1) is not a robust way to parse `svn status` output; the output is
> > columns-oriented, not whitespace-separated-fields oriented. `svn st |
> > cut` or `svn st --xml` are the recommended idioms.
>
> Now that you mention it, /^...C/ would have been much simpler.

Note also the 'svnconflict' tool which allows you to drive the
conflict resolver from scripts.

usage: svnconflict <subcommand> [args]
Type 'svnconflict --version' to see the program version and RA modules,

svnconflict provides a non-interactive conflict resolution interface.
It is intended for use by non-interactive scripts which cannot make
use of interactive conflict resolution provided by 'svn resolve'.

svnconflict operates on a single working copy path only. It is assumed that
scripts are able to discover conflicted paths in the working copy via other
means, such as 'svn status'.
Some advanced operations offered by 'svn resolve' are not supported.

svnconflict may contact the repository to obtain information about a conflict.
It will never modify the repository, but only read information from it.
svnconflict will not prompt for credentials. If read-access to the repository
requires credentials but no suitable credentials are stored in Subversion's
authentication cache or provided on the command line, the operation may fail.

Available subcommands:
   help (?, h)
   list (ls)
   options-text
   options-prop
   options-tree
   resolve-text
   resolve-prop
   resolve-tree

Subversion is a tool for version control.
For additional information, see http://subversion.apache.org/
Received on 2018-08-31 11:44:43 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.