monotone

monotone Mtn Source Tree

Root/cmd_othervcs.cc

1// Copyright (C) 2002 Graydon Hoare <graydon@pobox.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#include "cmd.hh"
11#include "rcs_import.hh"
12
13using std::vector;
14
15CMD(rcs_import, N_("debug"), N_("RCSFILE..."),
16 N_("parse versions in RCS files\n"
17 "this command doesn't reconstruct or import revisions."
18 "you probably want cvs_import"),
19 OPT_BRANCH_NAME)
20{
21 if (args.size() < 1)
22 throw usage(name);
23
24 for (vector<utf8>::const_iterator i = args.begin();
25 i != args.end(); ++i)
26 {
27 test_parse_rcs_file(system_path((*i)()), app.db);
28 }
29}
30
31
32CMD(cvs_import, N_("rcs"), N_("CVSROOT"),
33 N_("import all versions in CVS repository"),
34 OPT_BRANCH_NAME)
35{
36 if (args.size() != 1)
37 throw usage(name);
38
39 import_cvs_repo(system_path(idx(args, 0)()), app);
40}
41
42
43// Local Variables:
44// mode: C++
45// fill-column: 76
46// c-file-style: "gnu"
47// indent-tabs-mode: nil
48// End:
49// 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