monotone

monotone Mtn Source Tree

Root/update.hh

1#ifndef __UPDATE_HH__
2#define __UPDATE_HH__
3
4// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
5// all rights reserved.
6// licensed to the public under the terms of the GNU GPL (>= 2)
7// see the file COPYING for details
8
9#include <set>
10
11#include "app_state.hh"
12#include "manifest.hh"
13#include "vocab.hh"
14
15// this function just encapsulates the (somewhat complex) logic
16// behind picking an update target. the actual updating takes
17// place in commands.cc, along with most other file-modifying
18// actions.
19//
20// every equally revision that is tied for best update candidate will be
21// returned in 'candidates'. if no revisions are better than the current
22// revision, then 'candidates' will contain exactly the current revision.
23
24void pick_update_candidates(revision_id const & base_ident,
25 app_state & app,
26 std::set<revision_id> &candidates);
27
28#endif // __UPDATE_HH__

Archive Download this file

Branches

Tags

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