Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 25225:57fae767c52b
revset: drop translation marker from error message of _notpublic()
It is a kind of an internal error. End user won't see it.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 19 May 2015 23:29:20 +0900 |
parents | d032f57936f5 |
children | 235f6490550c |
comparison
equal
deleted
inserted
replaced
25224:d032f57936f5 | 25225:57fae767c52b |
---|---|
1478 except error.RepoLookupError: | 1478 except error.RepoLookupError: |
1479 return baseset() | 1479 return baseset() |
1480 | 1480 |
1481 # for internal use | 1481 # for internal use |
1482 def _notpublic(repo, subset, x): | 1482 def _notpublic(repo, subset, x): |
1483 # i18n: "public" is a keyword | 1483 getargs(x, 0, 0, "_notpublic takes no arguments") |
1484 getargs(x, 0, 0, _("_notpublic takes no arguments")) | |
1485 if repo._phasecache._phasesets: | 1484 if repo._phasecache._phasesets: |
1486 s = set() | 1485 s = set() |
1487 for u in repo._phasecache._phasesets[1:]: | 1486 for u in repo._phasecache._phasesets[1:]: |
1488 s.update(u) | 1487 s.update(u) |
1489 return subset & s | 1488 return subset & s |