monotone

monotone Mtn Source Tree

Root/update.hh

1#ifndef __UPDATE_HH__
2#define __UPDATE_HH__
3
4// Copyright (C) 2002 Graydon Hoare <graydon@pobox.com>
5//
6// This program is made available under the GNU GPL version 2.0 or
7// greater. See the accompanying file COPYING for details.
8//
9// This program is distributed WITHOUT ANY WARRANTY; without even the
10// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11// PURPOSE.
12
13#include <set>
14#include "vocab.hh"
15
16class project_t;
17class lua_hooks;
18
19// this function just encapsulates the (somewhat complex) logic
20// behind picking an update target. the actual updating takes
21// place in commands.cc, along with most other file-modifying
22// actions.
23//
24// every equally revision that is tied for best update candidate will be
25// returned in 'candidates'. if no revisions are better than the current
26// revision, then 'candidates' will contain exactly the current revision.
27
28void pick_update_candidates(lua_hooks & lua,
29 project_t & project,
30 std::set<revision_id> & candidates,
31 revision_id const & base_ident,
32 branch_name const & branchname,
33 bool ignore_suspend_certs);
34
35// Local Variables:
36// mode: C++
37// fill-column: 76
38// c-file-style: "gnu"
39// indent-tabs-mode: nil
40// End:
41// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
42
43#endif // __UPDATE_HH__

Archive Download this file

Branches

Tags

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