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 | ␊ |
16 | class app_state;␊ |
17 | ␊ |
18 | // this function just encapsulates the (somewhat complex) logic␊ |
19 | // behind picking an update target. the actual updating takes␊ |
20 | // place in commands.cc, along with most other file-modifying␊ |
21 | // actions.␊ |
22 | //␊ |
23 | // every equally revision that is tied for best update candidate will be␊ |
24 | // returned in 'candidates'. if no revisions are better than the current␊ |
25 | // revision, then 'candidates' will contain exactly the current revision.␊ |
26 | ␊ |
27 | void pick_update_candidates(revision_id const & base_ident,␊ |
28 | app_state & app,␊ |
29 | std::set<revision_id> &candidates);␊ |
30 | ␊ |
31 | // Local Variables:␊ |
32 | // mode: C++␊ |
33 | // fill-column: 76␊ |
34 | // c-file-style: "gnu"␊ |
35 | // indent-tabs-mode: nil␊ |
36 | // End:␊ |
37 | // vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:␊ |
38 | ␊ |
39 | #endif // __UPDATE_HH__␊ |