// // aegis - project change supervisor // Copyright (C) 2004-2008 Peter Miller // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see // . // #include #include #include #include module_change_bogus::~module_change_bogus() { str_free(pname); pname = 0; number = 0; } module_change_bogus::module_change_bogus(string_ty *arg1, long arg2) : pname(str_copy(arg1)), number(arg2) { } void module_change_bogus::groan(server_ty *sp, const char *caption) { server_error ( sp, "%s: project \"%s\": change %ld: no such change", caption, pname->str_text, number ); } void module_change_bogus::modified(server_ty *sp, string_ty *, file_info_ty *, input &) { groan(sp, "Modified"); } bool module_change_bogus::update(server_ty *sp, string_ty *, string_ty *, const options &) { groan(sp, "update"); return false; } bool module_change_bogus::checkin(server_ty *sp, string_ty *, string_ty *) { groan(sp, "ci"); return false; } bool module_change_bogus::add(server_ty *sp, string_ty *, string_ty *, const options &) { groan(sp, "add"); return false; } bool module_change_bogus::remove(server_ty *sp, string_ty *, string_ty *, const options &) { groan(sp, "remove"); return false; } string_ty * module_change_bogus::calculate_canonical_name() const { // FIXME: memory leak return str_from_c("no such change"); } bool module_change_bogus::is_bogus() const { return true; }