[Fusionforge-commits] r15373 - in branches/Branch_5_1: . src/plugins/scmsvn/common

Roland Mas lolando at fusionforge.org
Wed Apr 25 13:46:44 CEST 2012


Author: lolando
Date: 2012-04-25 13:46:43 +0200 (Wed, 25 Apr 2012)
New Revision: 15373

Modified:
   branches/Branch_5_1/
   branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php
Log:
Fixed SVN commit stats calculations (thanks to Coiby Xu)

Modified: branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php
===================================================================
--- branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php	2012-04-24 16:01:02 UTC (rev 15372)
+++ branches/Branch_5_1/src/plugins/scmsvn/common/SVNPlugin.class.php	2012-04-25 11:46:43 UTC (rev 15373)
@@ -655,12 +655,12 @@
 			if ($attrs['ACTION'] == "M") {
 				$updates++;
 				if ($last_user) {
-					$usr_updates[$last_user] = isset($usr_updates[$last_user]) ? ($usr_updates[$last_user]+1) : 0 ;
+					$usr_updates[$last_user] = isset($usr_updates[$last_user]) ? ($usr_updates[$last_user]+1) : 1 ;
 				}
 			} elseif ($attrs['ACTION'] == "A") {
 				$adds++;
 				if ($last_user) {
-					$usr_adds[$last_user] = isset($usr_adds[$last_user]) ? ($usr_adds[$last_user]+1) : 0 ;
+					$usr_adds[$last_user] = isset($usr_adds[$last_user]) ? ($usr_adds[$last_user]+1) : 1 ;
 				}
 			}
 		}




More information about the Fusionforge-commits mailing list