[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 30 Aug 2018 22:31:33 +0000

Dag-Erling Smørgrav wrote on Thu, 30 Aug 2018 23:49 +0200:
> Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:
> > Dag-Erling Smørgrav <des_at_des.no> writes:
> > > % svn resolved $(svn stat | awk '$2 == "C" { print $3 }')
> > 'svn resolved -R ./' is equivalent and more robust.
>
> No. My command line only resolves tree conflicts. Yours also resolves
> text conflicts.

Fair enough. I don't think we have an easy syntax for resolving only
tree conflicts.

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.

Cheers,

Daniel
Received on 2018-08-31 00:31:46 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.