equal
deleted
inserted
replaced
478 raise error.RepoLookupError() |
478 raise error.RepoLookupError() |
479 |
479 |
480 def isrevsymbol(repo, symbol): |
480 def isrevsymbol(repo, symbol): |
481 """Checks if a symbol exists in the repo. |
481 """Checks if a symbol exists in the repo. |
482 |
482 |
483 See revsymbol() for details. Raises error.LookupError if the symbol is an |
483 See revsymbol() for details. Raises error.AmbiguousPrefixLookupError if the |
484 ambiguous nodeid prefix. |
484 symbol is an ambiguous nodeid prefix. |
485 """ |
485 """ |
486 try: |
486 try: |
487 revsymbol(repo, symbol) |
487 revsymbol(repo, symbol) |
488 return True |
488 return True |
489 except error.RepoLookupError: |
489 except error.RepoLookupError: |