[yoda-svn] yoda: 3 new changesets

YODA Mercurial yoda at projects.hepforge.org
Sun Nov 22 18:30:02 GMT 2015


details:   https://yoda.hepforge.org/hg/yoda/rev/e382f347db6f
branches:  
changeset: 1179:e382f347db6f
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Nov 22 18:22:18 2015 +0000
description:
Fix path setting self-reference bug

details:   https://yoda.hepforge.org/hg/yoda/rev/2ec6efa3c7b7
branches:  
changeset: 1180:2ec6efa3c7b7
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Nov 22 18:23:08 2015 +0000
description:
Mark ChangeLog for 1.5.6 release

details:   https://yoda.hepforge.org/hg/yoda/rev/84b6f57f4621
branches:  
changeset: 1181:84b6f57f4621
user:      Andy Buckley <andy at insectnation.org>
date:      Sun Nov 22 18:23:17 2015 +0000
description:
Added tag yoda-1.5.6 for changeset 2ec6efa3c7b7

diffs (38 lines):

--- a/.hgtags	Sun Nov 22 15:05:53 2015 +0000
+++ b/.hgtags	Sun Nov 22 18:23:17 2015 +0000
@@ -28,3 +28,4 @@
 0000000000000000000000000000000000000000 yoda-1.5.5
 0000000000000000000000000000000000000000 yoda-1.5.5
 5590c32abfae9f9f3f46acf4e79420ebf0a38bd6 yoda-1.5.5
+2ec6efa3c7b74c112c589d438eaf818479d74d93 yoda-1.5.6
--- a/ChangeLog	Sun Nov 22 15:05:53 2015 +0000
+++ b/ChangeLog	Sun Nov 22 18:23:17 2015 +0000
@@ -1,5 +1,7 @@
 2015-11-22  Andy Buckley  <andy.buckley at cern.ch>
 
+	* Version 1.5.6!
+
 	* Make AO path setting and retrieval prepend a leading slash if it
 	is missing (unless the path is completely empty).
 
--- a/include/YODA/AnalysisObject.h	Sun Nov 22 15:05:53 2015 +0000
+++ b/include/YODA/AnalysisObject.h	Sun Nov 22 18:23:17 2015 +0000
@@ -217,7 +217,7 @@
     ///
     /// @note A leading / will be prepended if not already given.
     void setPath(const std::string& path) {
-      const std::string p = path.find("/") == 0 ? p : "/"+p;
+      const std::string p = (path.find("/") == 0) ? path : "/"+path;
       // if (path.length() > 0 && path.find("/") != 0) {
       //   throw AnnotationError("Histo paths must start with a slash (/) character.");
       // }
--- a/tests/TestHisto1Db.cc	Sun Nov 22 15:05:53 2015 +0000
+++ b/tests/TestHisto1Db.cc	Sun Nov 22 18:23:17 2015 +0000
@@ -6,7 +6,6 @@
 #include <cmath>
 #include <vector>
 #include <fstream>
-// #include <unistd.h>
 
 using namespace std;
 using namespace YODA;


More information about the yoda-svn mailing list