monotone

monotone Mtn Source Tree

Root/mtn-sanity.cc

1#include "base.hh"
2#include "mtn-sanity.hh"
3#include "ui.hh"
4#include "mt_version.hh"
5
6extern sanity & global_sanity;
7mtn_sanity real_sanity;
8sanity & global_sanity = real_sanity;
9
10mtn_sanity::mtn_sanity() : relaxed(false)
11{}
12
13mtn_sanity::~mtn_sanity()
14{}
15
16void
17mtn_sanity::initialize(int argc, char ** argv, char const * lc_all)
18{
19 this->sanity::initialize(argc, argv, lc_all);
20
21 std::string full_version_string;
22 get_full_version(full_version_string);
23 PERM_MM(full_version_string);
24}
25
26void
27mtn_sanity::set_relaxed(bool rel)
28{
29 relaxed = rel;
30}
31
32void
33mtn_sanity::inform_log(std::string const &msg)
34{
35 ui.inform(msg);
36}
37
38void
39mtn_sanity::inform_message(std::string const &msg)
40{
41 ui.inform(msg);
42}
43
44void
45mtn_sanity::inform_warning(std::string const &msg)
46{
47 ui.warn(msg);
48}
49
50void
51mtn_sanity::inform_error(std::string const &msg)
52{
53 ui.inform(msg);
54}
55
56
57// Local Variables:
58// mode: C++
59// fill-column: 76
60// c-file-style: "gnu"
61// indent-tabs-mode: nil
62// End:
63// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
64

Archive Download this file

Branches

Tags

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