subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Schmidt <subversion-2...@ryandesign.com>
Subject Re: how to decide whether a commit is a merge in pre-commit hook
Date Fri, 04 Mar 2016 00:12:06 GMT

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?




Mime
View raw message