mercurial/revset.py
branchstable
changeset 21173 d4daebb21cf6
parent 21024 7731a2281cf0
child 21199 e9c2f76be74b
equal deleted inserted replaced
21172:0f0059af920c 21173:d4daebb21cf6
   393     of any other head in the repo. If a second set is specified, the result
   393     of any other head in the repo. If a second set is specified, the result
   394     is ancestors of the first set that are not ancestors of the second set
   394     is ancestors of the first set that are not ancestors of the second set
   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     args = getargs(x, 1, 2, _('only takes one or two arguments'))
   399     args = getargs(x, 1, 2, _('only takes one or two arguments'))
   399     include = getset(repo, spanset(repo), args[0]).set()
   400     include = getset(repo, spanset(repo), args[0]).set()
   400     if len(args) == 1:
   401     if len(args) == 1:
   401         descendants = set(_revdescendants(repo, include, False))
   402         descendants = set(_revdescendants(repo, include, False))
   402         exclude = [rev for rev in cl.headrevs()
   403         exclude = [rev for rev in cl.headrevs()