&gt; Is the revset feature basically a DSL for specifying queries<p>Yes, it&#x27;s a way to select sets of revisions by filtering and merging existing sets.<p>&gt; and are the queries thus-specified ones that have direct analogs in git and can be done in git using git&#x27;s API?<p>I don&#x27;t think so, not all of the filter operations are available, but more importantly I don&#x27;t think git supports arbitrary sets of revisions, only fairly basic relatively continuous ranges (that&#x27;s the idea I get from gitrevisions(7) anyway)