Commit 99c25397 authored by Anton Shestakov's avatar Anton Shestakov
Browse files

obshistory: add a docstring to patchavailable()

parent 304de9a04172
......@@ -209,6 +209,11 @@
def patchavailable(node, repo, candidates, successive=True):
""" Check if it's possible to get a diff between node and candidates.
`candidates` contains nodes, which can be either successors (`successive`
is True) or predecessors (`successive` is False) of `node`.
if node not in repo:
return False, b"context is not local"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment