source: tags/0.6.8/lib/SVNproperty.cc

Last change on this file was 731, checked in by Peter Johansson, 13 years ago

update copyright statements

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1// $Id: SVNproperty.cc 731 2008-12-15 19:03:04Z peter $
2
3/*
4  Copyright (C) 2006 Jari Häkkinen
5  Copyright (C) 2007, 2008 Peter Johansson
6
7  This file is part of svndigest, http://dev.thep.lu.se/svndigest
8
9  svndigest is free software; you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13
14  svndigest is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22  02111-1307, USA.
23*/
24
25#include "SVNproperty.h"
26#include "SVN.h"
27
28#include <string>
29
30namespace theplu {
31namespace svndigest {
32
33
34  SVNproperty::SVNproperty(const std::string& path)
35    : binary_(false), svndigest_ignore_(false)
36  {
37    SVN::instance()->client_proplist(path, property_);
38    std::map<std::string, std::string>::const_iterator i = property_.begin();
39    std::map<std::string, std::string>::const_iterator e = property_.end();
40    for ( ; i!=e ; ++i)
41      if (i->first == "svndigest:ignore")
42        svndigest_ignore_=true;
43      else
44        if ((i->first == "svn:mime-type") &&
45            (svn_mime_type_is_binary(i->second.c_str())))
46          binary_=true;
47  }
48
49
50}} // end of namespace svndigest and namespace theplu
Note: See TracBrowser for help on using the repository browser.