comparison mercurial/revset.py @ 21173:d4daebb21cf6 stable

revset, i18n: add translator comment to "only"
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Tue, 22 Apr 2014 10:12:13 -0300
parents 7731a2281cf0
children e9c2f76be74b
comparison
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()