monotone

monotone Mtn Source Tree

Root/src/update.hh

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#ifndef __UPDATE_HH__
11#define __UPDATE_HH__
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 cmd_ws_commit.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#endif // __UPDATE_HH__
36
37// Local Variables:
38// mode: C++
39// fill-column: 76
40// c-file-style: "gnu"
41// indent-tabs-mode: nil
42// End:
43// 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