comparison mercurial/revset.py @ 22865:09951bedbf35

revset-only: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Oct 2014 02:45:43 -0700
parents 96b6b3d78697
children 6e739356f9bf
comparison
equal deleted inserted replaced
22864:96b6b3d78697 22865:09951bedbf35
395 (i.e. ::<set1> - ::<set2>). 395 (i.e. ::<set1> - ::<set2>).
396 """ 396 """
397 cl = repo.changelog 397 cl = repo.changelog
398 # i18n: "only" is a keyword 398 # i18n: "only" is a keyword
399 args = getargs(x, 1, 2, _('only takes one or two arguments')) 399 args = getargs(x, 1, 2, _('only takes one or two arguments'))
400 include = getset(repo, spanset(repo), args[0]).set() 400 include = getset(repo, spanset(repo), args[0])
401 if len(args) == 1: 401 if len(args) == 1:
402 if len(include) == 0: 402 if len(include) == 0:
403 return baseset() 403 return baseset()
404 404
405 descendants = set(_revdescendants(repo, include, False)) 405 descendants = set(_revdescendants(repo, include, False))