mercurial/scmutil.py
changeset 38841 df0873ab5c14
parent 38799 2002c193f2bc
child 38842 503f936489dd
equal deleted inserted replaced
38840:794afa91f0a5 38841:df0873ab5c14
   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: