source: trunk/lib/SVNproperty.cc @ 439

Last change on this file since 439 was 439, checked in by Peter Johansson, 14 years ago

Merged patch release 0.6.1 to the trunk. Delta 0.6.1 - 0.6

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