You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kaptaan <ka...@protonmail.com> on 2018/04/06 13:19:46 UTC

svn capture conflict messages in svn merge dry-run or svn merge non-interactive mode.

I am using svn 1.8.17 as my svn client on RHEL 6.1. I am trying to automate some of the merge functions. During the dryrun operation, I do get some tree conflict messages, which is fine, but I would like to show the reason of the tree conflict in the dry-run so the developers know why there is a conflict and what steps they should take.

svn merge $UAT_PROJECTS_SVNREP . -c105914 --dry-run
--- Merging r105914 into '.':
   C src/app/cobol/batch/AE0010I2.pco
   C src/app/cobol/batch/AKCALACU.cbl
   C src/app/cobol/batch/SMTEST1
   C src/app/cobol/batch/SMTEST2
   C src/app/cobol/copybook/AK1
Summary of conflicts:
  Tree conflicts: 5

However, it does not say why the tree conflict is there. e.g. when I do the actual merge

svn merge $UAT_PROJECTS_SVNREP . -c105914
Tree conflict on 'src/app/cobol/batch/AE0010I2.pco'
   > local file missing, incoming file delete upon merge
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: p
Tree conflict on 'src/app/cobol/batch/AKCALACU.cbl'
   > local file obstruction, incoming file add upon merge
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: p
Tree conflict on 'src/app/cobol/batch/SMTEST1'
   > local file obstruction, incoming file add upon merge
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: p
Tree conflict on 'src/app/cobol/batch/SMTEST2'
   > local file obstruction, incoming file add upon merge
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: p
Tree conflict on 'src/app/cobol/copybook/AK1'
   > local file obstruction, incoming file add upon merge
Select: (r) mark resolved, (p) postpone, (q) quit resolution, (h) help: p

I dont see these messages "> local file obstruction, incoming file add upon merge" if I use the merge in a non-interactive mode, say through a script or a cron job.

I would like to see the message "> Local file obstruction, incoming file add upon merge" during the dryrun option. Is there anyway we can have the reason of the conflict show in a dry-run or even in the actual merge in the non-interactive mode?

Or any other command to achieve the same result?

Thanks,
Amit Katekar.

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Re: svn capture conflict messages in svn merge dry-run or svn merge non-interactive mode.

Posted by Kaptaan <ka...@protonmail.com>.
Thanks Stefan.

The command is svn status :-)

I will script something around this to show tgis information and revert.

Thanks,
Amit Katekar.

Sent from ProtonMail mobile

-------- Original Message --------
On Apr 6, 2018, 8:38 AM, Stefan Sperling wrote:

> On Fri, Apr 06, 2018 at 09:19:46AM -0400, Kaptaan wrote:
>> I would like to see the message "> Local file obstruction, incoming file add upon merge" during the dryrun option. Is there anyway we can have the reason of the conflict show in a dry-run or even in the actual merge in the non-interactive mode?
>>
>> Or any other command to achieve the same result?
>
> If you run 'svn info' on a conflicted path it should show this information.

Re: svn capture conflict messages in svn merge dry-run or svn merge non-interactive mode.

Posted by Stefan Sperling <st...@elego.de>.
On Fri, Apr 06, 2018 at 09:19:46AM -0400, Kaptaan wrote:
> I would like to see the message "> Local file obstruction, incoming file add upon merge" during the dryrun option. Is there anyway we can have the reason of the conflict show in a dry-run or even in the actual merge in the non-interactive mode?
> 
> Or any other command to achieve the same result?

If you run 'svn info' on a conflicted path it should show this information.