mercurial/revset.py
changeset 22865 09951bedbf35
parent 22864 96b6b3d78697
child 22866 6e739356f9bf
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))