# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 2019-04-05 18:30:52 # Node ID 4b86f4f199a97bbb2f2c62d43398fdc3b4a92a00 # Parent 362726923ba3671b741e345cacf07f6abef27661 revset: short docstring for checkstatus This is where all the action happens for the status-related revsets, and a little documentation doesn't hurt. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -598,6 +598,12 @@ def bundle(repo, subset, x): return subset & bundlerevs def checkstatus(repo, subset, pat, field): + """Helper for status-related revsets (adds, removes, modifies). + The field parameter says which kind is desired: + 0: modified + 1: added + 2: removed + """ hasset = matchmod.patkind(pat) == 'set' mcache = [None]