# HG changeset patch # User Anton Shestakov # Date 1587811883 -28800 # Node ID 99c25397889e7e7a4bd427921f861eb1fbc38572 # Parent 304de9a04172213b18ef1493ce1f0b19c7e07fb6 obshistory: add a docstring to patchavailable() diff -r 304de9a04172 -r 99c25397889e hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Fri May 01 07:44:01 2020 -0700 +++ b/hgext3rd/evolve/obshistory.py Sat Apr 25 18:51:23 2020 +0800 @@ -209,6 +209,11 @@ pass 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"