~ubuntu-branches/ubuntu/edgy/pysvn/edgy

« back to all changes in this revision

Viewing changes to Source/pysvn.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-03-07 14:08:44 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20060307140844-xey4ygiqdrexvq0s
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//
2
2
// ====================================================================
3
 
// Copyright (c) 2003-2005 Barry A Scott.  All rights reserved.
 
3
// Copyright (c) 2003-2006 Barry A Scott.  All rights reserved.
4
4
//
5
5
// This software is licensed as described in the file LICENSE.txt,
6
6
// which you should have received as part of this distribution.
61
61
    pysvn_enum< svn_node_kind_t >::init_type();
62
62
    pysvn_enum_value< svn_node_kind_t >::init_type();
63
63
 
64
 
    add_keyword_method("Client", &pysvn_module::new_client, class_client_doc);
65
 
    add_keyword_method("Revision", &pysvn_module::new_revision, class_revision_doc);
66
 
    add_keyword_method("Transaction", &pysvn_module::new_transaction, class_transaction_doc);
 
64
    add_keyword_method("Client", &pysvn_module::new_client, pysvn_client_doc);
 
65
    add_keyword_method("Revision", &pysvn_module::new_revision, pysvn_revision_doc);
 
66
    add_keyword_method("Transaction", &pysvn_module::new_transaction, pysvn_transaction_doc);
67
67
 
68
 
    initialize( module_doc );
 
68
    initialize( pysvn_module_doc );
69
69
 
70
70
    Py::Dict d( moduleDictionary() );
71
71
 
72
72
    d["ClientError"] = client_error;
73
73
 
74
 
    d["copyright"] = Py::String( copyright );
 
74
    d["copyright"] = Py::String( copyright_doc );
75
75
    Py::Tuple version(4);
76
76
    version[0] = Py::Int( version_major );
77
77
    version[1] = Py::Int( version_minor );
150
150
    std::string repos_path = args.getUtf8String( name_repos_path );
151
151
    std::string transaction_name = args.getUtf8String( name_transaction_name );
152
152
 
153
 
    return Py::asObject( new pysvn_transaction( *this, repos_path, transaction_name ) );
 
153
    pysvn_transaction *t = new pysvn_transaction( *this );
 
154
    Py::Object result( Py::asObject( t ) );
 
155
    t->init( repos_path, transaction_name );
 
156
    return result;
154
157
}
155
158
 
156
159
static const char name_kind[] = "kind";