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

Re: how to decide whether a commit is a merge in pre-commit hook

From: Ryan Schmidt <subversion-2016_at_ryandesign.com>
Date: Thu, 3 Mar 2016 18:12:06 -0600

On Mar 3, 2016, at 12:50 AM, Jackie Xiao wrote:
 
> I’m writing a svn pre-commit hook, and I want to quit further rule checkings if the commit is a merge operation.
>
> I have searched online, it seems there are no way to distinguish normal commit from merge commit.
>
> My current way for handling this is very clumsy, get the changed list from “svnlook changed”, then iterate through every changed item to see if the line starts with _U (property changed)…

Could you instead check for the presence of the svn:mergeinfo property?
Received on 2016-03-04 01:12:19 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.