Changeset 9 for trunk/lib/Node.cc


Ignore:
Timestamp:
Dec 30, 2005, 9:24:00 AM (17 years ago)
Author:
Jari Häkkinen
Message:

Started work with reading file structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Node.cc

    r7 r9  
    1212namespace theplu{
    1313namespace svnstat{
    14 
    15   Node::Node(const std::string& path, Node* mother)
    16     : path_(path), mother_(mother)
    17   {
    18     info();
    19   }
    2014
    2115  std::vector<u_int> Node::accumulated(void) const
     
    5246      vec.resize(rev+1);
    5347      for (; i<rev; i++)
    54   vec[i]=0;
     48        vec[i]=0;
    5549      vec[rev]=1;
    5650    }
     
    5852      vec[rev]++;
    5953    stats_[user]=vec;
    60 
    61     if (mother_)
    62       mother_->add(user,rev);
    6354  }
    6455
     
    7869      getline(ss,tag,':');
    7970      if (tag == std::string("Repository UUID"))
    80   ss >> uuid_;
     71        ss >> uuid_;
    8172      else if (tag == std::string("Last Changed Author"))
    82   ss >> author_;
     73        ss >> author_;
    8374      else if (tag == std::string("Last Changed Rev"))
    84   ss >> revision_;
     75        ss >> revision_;
    8576    }
    8677   
Note: See TracChangeset for help on using the changeset viewer.