Changeset 1137


Ignore:
Timestamp:
Jul 18, 2010, 10:45:45 PM (11 years ago)
Author:
Peter Johansson
Message:

closes #245. support for svncopyright:ignore property.

Location:
trunk/lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Directory.cc

    r1024 r1137  
    271271                                  const std::map<int,svn_revnum_t>& y2r) const
    272272  {
    273     if (!ignore()){
     273    if (!ignore() && !svncopyright_ignore()) {
    274274      // print daughter nodes, i.e, this function is recursive
    275275      for (NodeConstIterator i = daughters_.begin(); i!=daughters_.end(); ++i)
  • trunk/lib/File.cc

    r1134 r1137  
    5252  File::File(const unsigned int level, const std::string& path,
    5353             const std::string& output)
    54     : Node(level,path,output) 
     54    : Node(level,path,output)
    5555  {
    5656    output_dir_=output;
     
    326326                             const std::map<int,svn_revnum_t>& y2rev) const
    327327  {
    328     if (ignore())
     328    if (ignore() || svncopyright_ignore())
    329329      return;
    330330
  • trunk/lib/Node.cc

    r1136 r1137  
    5454    binary_=property.binary();
    5555    svndigest_ignore_=property.svndigest_ignore();
     56    svncopyright_ignore_=property.svncopyright_ignore();
    5657    if (Node::project_==std::string()) // no root directory in local path
    5758      Node::project_ = file_name(path);
     
    326327
    327328
     329  bool Node::svncopyright_ignore(void) const
     330  {
     331    return svncopyright_ignore_;
     332  }
     333
     334
    328335  std::string Node::url(void) const
    329336  {
  • trunk/lib/Node.h

    r1017 r1137  
    200200   
    201201  protected:
     202    /**
     203       \return true if svncopyright::ignore property was set
     204     */
     205    bool svncopyright_ignore(void) const;
    202206
    203207    ///
     
    238242    mutable SVNlog* log_;
    239243    bool svndigest_ignore_;
     244    bool svncopyright_ignore_;
    240245    SVNinfo svninfo_;
    241246  };
  • trunk/lib/SVNproperty.cc

    r978 r1137  
    4646
    4747
     48  bool SVNproperty::svncopyright_ignore(void) const
     49  {
     50    return property_.find("svncopyright:ignore") != property_.end();
     51  }
     52
    4853}} // end of namespace svndigest and namespace theplu
  • trunk/lib/SVNproperty.h

    r978 r1137  
    6767
    6868    /**
     69       \return true if propert svncopyright::ignore has been set
     70
     71       \see svndigest_ignore
     72     */
     73    bool svncopyright_ignore(void) const;
     74
     75    /**
    6976       @brief Get the list of properties for item used to creat this
    7077       SVNproperty object.
Note: See TracChangeset for help on using the changeset viewer.