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

Re: Feature Request: svn status should provide a conflict check functionality via exit code

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 09 Jan 2018 09:51:21 +0000

H.-Dirk Schmitt wrote on Tue, 09 Jan 2018 00:16 +0100:
> Hello !
>
> i missing an easy way to check a local checkout for conflicts.
>
> Currently I'm grep the output of svn status for the existence of the
> phrase „Summary of conflicts“.
> This is ugly:
> - needs LC_ALL=C ensurance
> - may break in future versions of my the svn client.
>
> A better way would to have an --check-conflict option which would
> ensure an non-zero exit code if any conflict is detected.

The usual answer to this is "grep for a 'C' in the first, second, or
seventh column" (for text/prop/tree conflicts respectively), but I can
see how future versions might add messages (such as "Summary of
conflicts:" or "--- Changelist 'foo':") that would match those grep
patterns (as false positives). The best (current?) way to mitigate this
risk is to use 'svn status --xml'.

Cheers,

Daniel
Received on 2018-01-09 10:51:26 CET

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.