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 "base.hh"
11#include "cmd.hh"
12#include "app_state.hh"
13#include "rcs_import.hh"
14
15using std::vector;
16
17CMD(rcs_import, "rcs_import", "", CMD_REF(debug), N_("RCSFILE..."),
18 N_("Parses versions in RCS files"),
19 N_("This command doesn't reconstruct or import revisions. "
20 "You probably want to use cvs_import."),
21 options::opts::branch)
22{
23 if (args.size() < 1)
24 throw usage(execid);
25
26 for (args_vector::const_iterator i = args.begin();
27 i != args.end(); ++i)
28 {
29 test_parse_rcs_file(system_path((*i)()), app.db);
30 }
31}
32
33
34CMD(cvs_import, "cvs_import", "", CMD_REF(rcs), N_("CVSROOT"),
35 N_("Imports all versions in a CVS repository"),
36 "",
37 options::opts::branch)
38{
39 if (args.size() != 1)
40 throw usage(execid);
41
42 import_cvs_repo(system_path(idx(args, 0)()), app);
43}
44
45
46// Local Variables:
47// mode: C++
48// fill-column: 76
49// c-file-style: "gnu"
50// indent-tabs-mode: nil
51// End:
52// 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