changeset 42104:4b86f4f199a9

revset: short docstring for checkstatus This is where all the action happens for the status-related revsets, and a little documentation doesn't hurt.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 05 Apr 2019 14:30:52 -0400
parents 362726923ba3
children e0357a46c39d
files mercurial/revset.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Apr 11 18:10:07 2019 +0200
+++ b/mercurial/revset.py	Fri Apr 05 14:30:52 2019 -0400
@@ -598,6 +598,12 @@
     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]