Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 16755:d0b9ebba41e9
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 20 May 2012 14:40:36 -0500 |
parents | 9acb5cd19162 0a730d3c5aae |
children | 2ac08d8b21aa |
comparison
equal
deleted
inserted
replaced
16754:d94c470c3deb | 16755:d0b9ebba41e9 |
---|---|
865 | 865 |
866 def present(repo, subset, x): | 866 def present(repo, subset, x): |
867 """``present(set)`` | 867 """``present(set)`` |
868 An empty set, if any revision in set isn't found; otherwise, | 868 An empty set, if any revision in set isn't found; otherwise, |
869 all revisions in set. | 869 all revisions in set. |
870 | |
871 If any of specified revisions is not present in the local repository, | |
872 the query is normally aborted. But this predicate allows the query | |
873 to continue even in such cases. | |
870 """ | 874 """ |
871 try: | 875 try: |
872 return getset(repo, subset, x) | 876 return getset(repo, subset, x) |
873 except error.RepoLookupError: | 877 except error.RepoLookupError: |
874 return [] | 878 return [] |