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

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

From: Jackie Xiao <jackie.xiao_at_ebaotech.com>
Date: Thu, 3 Mar 2016 06:50:13 +0000

Dear list:

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)...

Any suggestions? Thanks in advance

Thanks
Best Regards

This e-mail and any attachments thereto are intended for the sole use of the recipient(s) named above and may contain confidential and/or privileged material. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication, or dissemination in any form) by persons other than the intended recipient(s) is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer.
Received on 2016-03-03 19:42:54 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.