Mercurial > hg
comparison mercurial/discovery.py @ 12762:8bac8cd43c8d
discovery: findincoming() is no longer used
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 17 Oct 2010 22:24:26 +0200 |
parents | 11c3c77da62a |
children | a50606327538 |
comparison
equal
deleted
inserted
replaced
12761:11c3c77da62a | 12762:8bac8cd43c8d |
---|---|
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | 7 |
8 from node import nullid, short | 8 from node import nullid, short |
9 from i18n import _ | 9 from i18n import _ |
10 import util, error | 10 import util, error |
11 | |
12 def findincoming(repo, remote, heads=None, force=False): | |
13 """Return list of roots of the subsets of missing nodes from remote | |
14 | |
15 If a list of heads is specified, return only nodes which are heads | |
16 or ancestors of these heads. | |
17 | |
18 All the ancestors of the list returned are in repo and in remote. | |
19 All the descendants of the list returned are missing in repo. | |
20 (and so we know that the rest of the nodes are missing in remote, see | |
21 outgoing) | |
22 """ | |
23 return findcommonincoming(repo, remote, heads, force)[1] | |
24 | 11 |
25 def findcommonincoming(repo, remote, heads=None, force=False): | 12 def findcommonincoming(repo, remote, heads=None, force=False): |
26 """Return a tuple (common, missing roots, heads) used to identify | 13 """Return a tuple (common, missing roots, heads) used to identify |
27 missing nodes from remote. | 14 missing nodes from remote. |
28 | 15 |