]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
add downloading SVN status info for trending
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Oct 2009 11:01:24 +0000 (11:01 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Oct 2009 11:01:24 +0000 (11:01 +0000)
TRD/qaRec/macros/helper.C

index 3b0edaa591a84593ee28abccb7dd877354067db1..72884078a39b0393f41687fa384028fa7b79465e 100644 (file)
@@ -48,6 +48,7 @@ Int_t ParseOptions(Char_t *trd)
 void mergeProd(const Char_t *mark, const Char_t *files, const Int_t kBatch = 20)
 {
   TFileMerger *fFM = 0x0;
+  Bool_t kSVN = kFALSE;
 
   Int_t jbatch = 0, nbatch = 0;
   string filename;
@@ -61,6 +62,10 @@ void mergeProd(const Char_t *mark, const Char_t *files, const Int_t kBatch = 20)
       } else fFM = new TFileMerger(kTRUE);
       fFM->OutputFile(Form("%s/%d_%s",  gSystem->ExpandPathName("$PWD"), jbatch, mark));
     }
+    if(!kSVN){ // download SVN info for trending
+      string base=filename.substr(0, filename.find_last_of('/'));
+      if(gSystem->Exec(Form("cp -v %s/svnInfo.log .", base.c_str())) == 0) kSVN=kTRUE;
+    }
     fFM->AddFile(filename.c_str()); nbatch++;
     if(nbatch==kBatch){
       printf("MERGING BATCH %d [%d] ... \n", jbatch, nbatch);