monotone

monotone Mtn Source Tree

Root/src/git_export.hh

1// Copyright (C) 2009 Derek Scherger <derek@echologic.com>
2//
3// This program is made available under the GNU GPL version 2.0 or
4// greater. See the accompanying file COPYING for details.
5//
6// This program is distributed WITHOUT ANY WARRANTY; without even the
7// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8// PURPOSE.
9
10#ifndef __GIT_EXPORT_HH__
11#define __GIT_EXPORT_HH__
12
13void read_mappings(system_path const & path,
14 std::map<std::string, std::string> & mappings);
15
16void validate_author_mappings(lua_hooks & lua,
17 std::map<std::string,
18 std::string> const & authors);
19
20void import_marks(system_path const & marks_file,
21 std::map<revision_id, size_t> & marked_revs);
22
23void export_marks(system_path const & marks_file,
24 std::map<revision_id, size_t> const & marked_revs);
25
26void load_changes(database & db,
27 std::vector<revision_id> const & revisions,
28 std::map<revision_id, git_change> & change_map);
29
30void export_changes(database & db, lua_hooks & lua,
31 std::vector<revision_id> const & revisions,
32 std::map<revision_id, size_t> & marked_revs,
33 std::map<std::string, std::string> const & author_map,
34 std::map<std::string, std::string> const & branch_map,
35 std::map<revision_id, git_change> const & change_map,
36 bool log_revids, bool log_certs, bool use_one_changelog);
37
38void export_rev_refs(std::vector<revision_id> const & revisions,
39 std::map<revision_id, size_t> & marked_revs);
40
41void export_root_refs(database & db,
42 std::map<revision_id, size_t> & marked_revs);
43
44void export_leaf_refs(database & db,
45 std::map<revision_id, size_t> & marked_revs);
46
47#endif // __GIT_EXPORT_HH__
48
49// Local Variables:
50// mode: C++
51// fill-column: 76
52// c-file-style: "gnu"
53// indent-tabs-mode: nil
54// End:
55// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status