svn commit: r359966 - svnadmin/hooks/scripts

Alex Kozlov ak at FreeBSD.org
Tue Jul 1 08:36:21 UTC 2014


Author: ak
Date: Tue Jul  1 08:36:21 2014
New Revision: 359966
URL: http://svnweb.freebsd.org/changeset/ports/359966
QAT: https://qat.redports.org/buildarchive/r359966/

Log:
  - Check directories from which files were removed (files is most common case)
  
  Approved by:	portmgr (bapt)

Modified:
  svnadmin/hooks/scripts/detect-empty.sh

Modified: svnadmin/hooks/scripts/detect-empty.sh
==============================================================================
--- svnadmin/hooks/scripts/detect-empty.sh	Tue Jul  1 08:27:56 2014	(r359965)
+++ svnadmin/hooks/scripts/detect-empty.sh	Tue Jul  1 08:36:21 2014	(r359966)
@@ -13,7 +13,9 @@ for line in $(svnlook changed -t $TXN $R
 	type=$1
 	fpath=$2
 	case $type in
-	[^AU]*) continue;;
+	D)	case $fpath in */) continue ;; esac # skip deleted directories
+		fpath="${fpath%/*}/" ;; # directory from which file was removed
+	[^AU]*)	continue ;;
 	esac
 	case $fpath in
 	*/)	# directory


More information about the svn-ports-all mailing list