revset arguments on 2.2.1
Peter Kronenberg
pakronenberg at gmail.com
Thu Oct 13 22:13:15 UTC 2016
Thanks. Didn't realize that. How does one tell what is the 'top-level'
way to do things? The documentation is somewhat sparse, to say the least.
On Thu, Oct 13, 2016 at 6:10 PM, Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:
>
>
> On 10/13/2016 09:44 PM, Peter Kronenberg wrote:
>
>> I have a server running 2.2.1 and I can't figure out the arguments for
>> the result of revset.match
>>
>> In my 3.9.2 code, I have
>>
>> revsetQuery = ' ***query goes here*** '
>> revsetResult = revset.match(ui, revsetQuery)
>>
>
> Any reasons you are using revset.match directly?
>
> The top level way to query a reset from a repository is
> `repo.set(your_query_goes_here)`.
>
> Now, I want to reference revsetResult(repo) or revsetResult(repo. None),
>> both of which work in 3.9.2
>>
>> But 2.2.1 doesn't like the second argument. It's supposed to be a
>> subset, but not sure what to put if I don't want to specify a subset.
>>
>
> --
> Pierre-Yves David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20161013/006013f0/attachment-0002.html>
More information about the Mercurial-devel
mailing list