ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Subversion/Client.cpp
Revision: 697
Committed: 2006-03-10T04:17:42-08:00 (19 years, 3 months ago) by douglas
File size: 961 byte(s)
Log Message:
No worky!

File Contents

# User Rev Content
1 douglas 697 // Subversion Client
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include <cxx/standard.hh>
8    
9     #include "Client.hpp"
10    
11     namespace Subversion
12     {
13    
14     Client::Client()
15     {
16     // XXX: CheckError()
17     ::svn_client_create_context(&context, pool);
18     }
19    
20     cse::String Client::GetProperty(const cse::String &property, const cse::String &target)
21     {
22     return cse::String();
23     }
24    
25     std::tm Client::GetEntryCommittedDate(const cse::String &target)
26     {
27     apr_hash_t *hash;
28     svn_opt_revision_t revision = { svn_opt_revision_unspecified };
29    
30     // XXX: CheckError()
31     ::svn_client_propget2(&hash, SVN_PROP_ENTRY_COMMITTED_DATE, target.NullTerminate(), &revision, &revision, false, context, pool);
32    
33     svn_string_t *value;
34    
35     // XXX: api::Apr::CheckError()
36     ::apr_hash_this(::apr_hash_first(pool, hash), NULL, NULL, reinterpret_cast<void **>(&value));
37    
38     cse::String value_(value->data, value->len);
39    
40     api::Cerr << value_ << ios::NewLine;
41    
42     std::tm date;
43    
44     ::strptime(value_.NullTerminate(), "", &date);
45    
46     return date;
47     }
48    
49     }

Properties

Name Value
svn:eol-style native
svn:keywords Id